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
- array
Type: array<System.Security.Cryptography.X509Certificates. . :: . .X509Certificate2> [] () [] []
The one-dimensional array that is the destination of the elements in the collection.
- index
Type: System. . :: . .Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.