CmsRecipientCollection.CopyTo Method

Definition

Copies the CmsRecipientCollection collection to an array.

Overloads

CopyTo(Array, Int32)

The CopyTo(Array, Int32) method copies the CmsRecipientCollection collection to an array.

CopyTo(CmsRecipient[], Int32)

The CopyTo(CmsRecipient[], Int32) method copies the CmsRecipientCollection collection to a CmsRecipient array.

CopyTo(Array, Int32)

The CopyTo(Array, Int32) method copies the CmsRecipientCollection collection to an array.

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit

Parameters

array
Array

An Array object to which the CmsRecipientCollection collection is to be copied.

index
Int32

The zero-based index in array where the CmsRecipientCollection collection is copied.

Implements

Exceptions

array is not large enough to hold the specified elements.

-or-

array does not contain the proper number of dimensions.

array is null.

index is outside the range of elements in array.

See also

CopyTo(CmsRecipient[], Int32)

The CopyTo(CmsRecipient[], Int32) method copies the CmsRecipientCollection collection to a CmsRecipient array.

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

Parameters

array
CmsRecipient[]

An array of CmsRecipient objects where the CmsRecipientCollection collection is to be copied.

index
Int32

The zero-based index for the array of CmsRecipient objects in array to which the CmsRecipientCollection collection is copied.

Exceptions

array is not large enough to hold the specified elements.

-or-

array does not contain the proper number of dimensions.

array is null.

index is outside the range of elements in array.

See also

Applies to