Editar

Compartilhar via


X509CertificateCollection.CopyTo(X509Certificate[], Int32) Method

Definition

Copies the X509Certificate values in the current X509CertificateCollection to a one-dimensional Array instance at the specified index.

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)

Parameters

array
X509Certificate[]

The one-dimensional Array that is the destination of the values copied from X509CertificateCollection.

index
Int32

The index into array to begin copying.

Exceptions

The array parameter is multidimensional.

-or-

The number of elements in the X509CertificateCollection is greater than the available space between arrayIndex and the end of array.

The array parameter is null.

The arrayIndex parameter is less than the array parameter's lower bound.

Applies to

See also