X509CertificateCollection.CopyTo(X509Certificate[], Int32) 方法

定义

将当前 X509CertificateCollection 中的 X509Certificate 值复制到指定索引处的一维 Array 实例中。

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

参数

array
X509Certificate[]

一维 Array,它是从 X509CertificateCollection 复制的值的目标。

index
Int32

array 内的索引,从此处开始复制。

例外

array 参数多维。

array 参数为 null

arrayIndex 参数小于 array 参数的下限。

适用于

另请参阅