Copies the entire DistinguishedNameList to a compatible one-dimensional Array, starting at the specified index of the target array.
[Visual Basic]
Public Sub CopyTo( _
ByVal array As Array, _
ByVal index As Integer _
)
Exception Type | Condition |
---|---|
ArgumentNullException | array is a null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | arrayIndex is less than zero. |
ArgumentException | array is multidimensional -or- arrayIndex 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 from arrayIndex to the end of the destination array. |
InvalidCastException | The type of the source DistinguishedNameList cannot be cast automatically to the type of the destination array. |
DistinguishedNameList Class | DistinguishedNameList Members | Org.Mentalis.Security.Certificates Namespace