[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Copies the elements of the ICollection < (Of < ( <' T > ) > ) > to an Array, starting at a particular Arrayindex.

Namespace:  Microsoft.ConfigurationManagement.Messaging.Messages.Server
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
void 
CopyTo(
	
string[] 
array,
	
int 
arrayIndex
)
Public 
Sub 
CopyTo ( _
	
array 
As 
String(), _
	
arrayIndex 
As 
Integer _
)
public:
virtual 
void 
CopyTo(
	
array<
String^>^ 
array, 
	
int 
arrayIndex
) 
sealed

Parameters

array
array< String > [] () [] []
The one-dimensional Arraythat is the destination of the elements copied from ICollection < (Of < ( <' T > ) > ) > . The Arraymust have zero-based indexing.
arrayIndex
Int32
The zero-based index in arrayat which copying begins.

Implements

ICollection < (Of < ( <' T > ) > ) > . . :: . . CopyTo( array< T > [] () [] [] , Int32)

Exceptions

Exception Condition
System . . :: . . ArgumentNullException arrayis null.
System . . :: . . ArgumentOutOfRangeException arrayIndexis less than 0.
System . . :: . . ArgumentException arrayis multidimensional.-or-The number of elements in the source ICollection < (Of < ( <' T > ) > ) > is greater than the available space from arrayIndexto the end of the destination array.-or-Type .

See Also