X509ChainElementCollection::CopyTo Method (array<X509ChainElement^>^, Int32)

 

Copies an X509ChainElementCollection object into an array, starting at the specified index.

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

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

Parameters

array
Type: array<System.Security.Cryptography.X509Certificates::X509ChainElement^>^

An array of X509ChainElement objects.

index
Type: System::Int32

An integer representing the index value.

Exception Condition
ArgumentOutOfRangeException

The specified index is less than zero, or greater than or equal to the length of the array.

ArgumentNullException

array is null.

ArgumentException

index plus the current count is greater than the length of the array.

.NET Framework
Available since 2.0
Return to top
Show: