RecipientInfoCollection.CopyTo 方法

定义

CopyTo 方法将 RecipientInfoCollection 集合复制到一个数组中。The CopyTo method copies the RecipientInfoCollection collection to an array.

重载

CopyTo(Array, Int32)

CopyTo(Array, Int32) 方法将 RecipientInfoCollection 集合复制到一个数组中。The CopyTo(Array, Int32) method copies the RecipientInfoCollection collection to an array.

CopyTo(RecipientInfo[], Int32)

CopyTo(RecipientInfo[], Int32) 方法将 RecipientInfoCollection 集合复制到 RecipientInfo 数组中。The CopyTo(RecipientInfo[], Int32) method copies the RecipientInfoCollection collection to a RecipientInfo array.

CopyTo(Array, Int32)

CopyTo(Array, Int32) 方法将 RecipientInfoCollection 集合复制到一个数组中。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

参数

array
Array

一个 Array 对象,RecipientInfoCollection 集合将被复制到该对象。An Array object to which the RecipientInfoCollection collection is to be copied.

index
Int32

array 中从零开始的索引,RecipientInfoCollection 集合将被复制到此位置。The zero-based index in array where the RecipientInfoCollection collection is copied.

实现

异常

为方法提供的某一参数无效。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.

CopyTo(RecipientInfo[], Int32)

CopyTo(RecipientInfo[], Int32) 方法将 RecipientInfoCollection 集合复制到 RecipientInfo 数组中。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)

参数

array
RecipientInfo[]

RecipientInfo 对象的数组,RecipientInfoCollection 集合将被复制到其中。An array of RecipientInfo objects where the RecipientInfoCollection collection is to be copied.

index
Int32

array 中从零开始的索引,RecipientInfoCollection 集合将被复制到此位置。The zero-based index in array where the RecipientInfoCollection collection is copied.

异常

为方法提供的某一参数无效。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.

适用于