Edit

Share via


CryptographicAttributeObjectCollection.CopyTo Method

Definition

Copies the CryptographicAttributeObjectCollection collection to an array of CryptographicAttributeObject objects.

public:
 void CopyTo(cli::array <System::Security::Cryptography::CryptographicAttributeObject ^> ^ array, int index);
public void CopyTo (System.Security.Cryptography.CryptographicAttributeObject[] array, int index);
member this.CopyTo : System.Security.Cryptography.CryptographicAttributeObject[] * int -> unit
Public Sub CopyTo (array As CryptographicAttributeObject(), index As Integer)

Parameters

array
CryptographicAttributeObject[]

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

index
Int32

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

Exceptions

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

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

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

Applies to

See also