CopyTo Method (X509Certificate2[], Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Sub CopyTo ( _
    array As X509Certificate2(), _
    index As Integer _
)
public void CopyTo(
    X509Certificate2[] array,
    int index
)
public:
void CopyTo(
    array<X509Certificate2^>^ array, 
    int index
)
member CopyTo : 
        array:X509Certificate2[] * 
        index:int -> unit 
public function CopyTo(
    array : X509Certificate2[], 
    index : int
)

Parameters

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.

.NET Framework Security

See Also

Reference

X509Certificate2Collection Class

CopyTo Overload

System.Security.Cryptography.X509Certificates Namespace