X509ChainElementCollection.CopyTo Method (X509ChainElement[], Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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(
	X509ChainElement[] array,
	int index
)

Parameters

array
Type: 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: