X509CertificateCollection::CopyTo Method (array<X509Certificate^>^, Int32)
Copies the X509Certificate values in the current X509CertificateCollection to a one-dimensional Array instance at the specified index.
Assembly: System (in System.dll)
Parameters
- array
-
Type:
array<System.Security.Cryptography.X509Certificates::X509Certificate^>^
The one-dimensional Array that is the destination of the values copied from X509CertificateCollection.
- index
-
Type:
System::Int32
The index into array to begin copying.
| Exception | Condition |
|---|---|
| ArgumentException | The array parameter is multidimensional. -or- The number of elements in the X509CertificateCollection is greater than the available space between arrayIndex and the end of array. |
| ArgumentNullException | The array parameter is null. |
| ArgumentOutOfRangeException | The arrayIndex parameter is less than the array parameter's lower bound. |
Available since 1.1