Upravit

Sdílet prostřednictvím


RecipientInfoCollection.CopyTo Method

Definition

The CopyTo method copies the RecipientInfoCollection collection to an array.

Overloads

CopyTo(Array, Int32)

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

CopyTo(RecipientInfo[], Int32)

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

CopyTo(Array, Int32)

Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs

The CopyTo(Array, Int32) method copies the RecipientInfoCollection 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
Public Sub CopyTo (array As Array, index As Integer)

Parameters

array
Array

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

index
Int32

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

Implements

Exceptions

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

A null reference 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

CopyTo(RecipientInfo[], Int32)

Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs
Source:
RecipientInfoCollection.cs

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

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

Parameters

array
RecipientInfo[]

An array of RecipientInfo objects where the RecipientInfoCollection collection is to be copied.

index
Int32

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

Exceptions

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

A null reference 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