| Visual Basic (Declaration) | |
|---|---|
Public Overloads Sub CopyTo( _ ByVal array As CertificateStore, _ ByVal index As Integer _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As CertificateStore Dim array As CertificateStore Dim index As Integer instance.CopyTo(array, index) | |
| C# | |
|---|---|
public void CopyTo( CertificateStore array, int index ) | |
| Managed Extensions for C++ | |
|---|---|
public: void CopyTo( CertificateStore* array, int index ) | |
| C++/CLI | |
|---|---|
public: void CopyTo( CertificateStore^ array, int index ) | |
Parameters
- array
- The one-dimensional Array that is the destination of the elements copied from ArrayList. The Array must have zero-based indexing.
- index
- The zero-based index in array at which copying begins.
| Exception | Description |
|---|---|
| System.ArgumentNullException | array is a null reference (Nothing in Visual Basic). |
| System.ArgumentException | array is multidimensional. |
| System.InvalidCastException | The type of the source ArrayList cannot be cast automatically to the type of the destination array. |
The specified array must be of a compatible type.
This method uses Array.Copy to copy the elements.
Target Platforms: Microsoft .NET Framework 2.0