AsnEncodedDataCollection.ICollection.CopyTo(Array, Int32) Method

Definition

Copies the AsnEncodedDataCollection object into an array.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, index As Integer) Implements ICollection.CopyTo

Parameters

array
Array

The array that the AsnEncodedDataCollection object is to be copied into.

index
Int32

The location where the copy operation starts.

Implements

Exceptions

array is a multidimensional array, which is not supported by this method.

-or-

The length for index is invalid.

array is null.

The length for index is out of range.

Remarks

This method copies the contents of an AsnEncodedDataCollection object into an array. The copying begins at the index location specified.

Applies to