PowerTCP Mail for .NET
CopyTo(CertificateStore,Int32) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > CertificateStore Class > CopyTo Method : CopyTo(CertificateStore,Int32) Method




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.
Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Syntax

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.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionarray is a null reference (Nothing in Visual Basic).
System.ArgumentExceptionarray is multidimensional.
System.InvalidCastExceptionThe type of the source ArrayList cannot be cast automatically to the type of the destination array.

Remarks

The specified array must be of a compatible type.

This method uses Array.Copy to copy the elements.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.