X509ChainElementCollection::ICollection::CopyTo Method (Array^, Int32)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

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

private:
virtual void CopyTo(
	Array^ array,
	int index
) sealed = ICollection::CopyTo

Parameters

array
Type: System::Array^

An array to copy the X509ChainElementCollection object to.

index
Type: System::Int32

The index of array at which to start copying.

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: