X509CertificateCollection::CopyTo Method (array<X509Certificate^>^, Int32)

 

Copies the X509Certificate values in the current X509CertificateCollection to a one-dimensional Array instance at the specified index.

Namespace:   System.Security.Cryptography.X509Certificates
Assembly:  System (in System.dll)

public:
void CopyTo(
	array<X509Certificate^>^ array,
	int index
)

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.

.NET Framework
Available since 1.1
Return to top
Show: