CryptographicAttributeObjectCollection.CopyTo Method (CryptographicAttributeObject[], 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 the CryptographicAttributeObjectCollection collection to an array of CryptographicAttributeObject objects.

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

public void CopyTo(
	CryptographicAttributeObject[] array,
	int index
)

Parameters

array
Type: System.Security.Cryptography.CryptographicAttributeObject[]

An array of CryptographicAttributeObject objects that the collection is copied to.

index
Type: System.Int32

The zero-based index in array to which the collection is to be copied.

Exception Condition
ArgumentException

One of the arguments provided to a method was not valid.

ArgumentNullException

null was passed to a method that does not accept it as a valid argument.

ArgumentOutOfRangeException

The value of an argument was outside the allowable range of values as defined by the called method.

.NET Framework
Available since 2.0
Return to top
Show: