Share via


X509Certificate2Collection.CopyTo Method (X509Certificate2[], Int32)

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

Namespace: System.Security.Cryptography.X509Certificates
Assembly: System.Security (in system.security.dll)

Syntax

public void CopyTo (
         X509Certificate2[] array,
         int index
)

Parameters

  • array
    The one-dimensional array that is the destination of the elements copied from X509CertificateCollection.
  • index
    The index in array to begin copying.

Remarks

The elements are copied to the array in the same order in which the enumerator iterates through the collection. This method is an O(n) operation, where n is Count.

Version Information

Available in the .NET Micro Framework version 4.2.

See Also

Reference

X509Certificate2Collection Class
X509Certificate2Collection Members
System.Security.Cryptography.X509Certificates Namespace