Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft