Copies the entire
DistinguishedNameList to a compatible one-dimensional
Array, starting at the specified index of the target array.
Namespace: LLCryptoLib.Security.CertificatesAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
| C# |
|---|
public void CopyTo(
Array array,
int index
) |
| Visual Basic |
|---|
Public Sub CopyTo ( _
array As Array, _
index As Integer _
) |
| Visual C++ |
|---|
public:
void CopyTo(
Array^ array,
int index
) |
Parameters
- array
- Type: System..::..Array
The one-dimensional Array that is the destination of the elements copied from DistinguishedNameList. The Array must have zero-based indexing.
- index
- Type: System..::..Int32
The zero-based index in array at which copying begins.
Exceptions
| Exception | Condition |
|---|
| System..::..ArgumentNullException | array is a null reference (Nothing in Visual Basic). |
| System..::..ArgumentOutOfRangeException | array is less than zero. |
| System..::..ArgumentException | array is multidimensional -or- array is equal to or greater than the length of array -or- the number of elements in the source DistinguishedNameList is greater than the available space to the end of the destination array. |
| System..::..InvalidCastException | The type of the source DistinguishedNameList cannot be cast automatically to the type of the destination array. |
See Also