X509CertificateCollection.CopyTo(X509Certificate[], Int32) Methode
Definition
Kopiert die X509Certificate-Werte in der aktuellen X509CertificateCollection an den angegebenen Index in einer eindimensionalen Array-Instanz.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)
Parameter
- array
- X509Certificate[]
Das eindimensionale Array, das das Ziel der aus der X509CertificateCollection kopierten Werte ist.The one-dimensional Array that is the destination of the values copied from X509CertificateCollection.
- index
- Int32
Der Index im array
, an dem der Kopiervorgang beginnen soll.The index into array
to begin copying.
Ausnahmen
Der array
-Parameter ist mehrdimensional.The array
parameter is multidimensional.
Oder-or-
Die Anzahl der Elemente in der X509CertificateCollection ist größer als der verfügbare Platz zwischen arrayIndex
und dem Ende von array
.The number of elements in the X509CertificateCollection is greater than the available space between arrayIndex
and the end of array
.
Der array
-Parameter ist null
.The array
parameter is null
.
Der arrayIndex
-Parameter ist kleiner als die Untergrenze des array
-Parameters.The arrayIndex
parameter is less than the array
parameter's lower bound.