DdmArrayProperty.CopyTo Method (String[], Int32)
Copies the elements of the ICollection<T> to an Array, starting at a specified Array index.
Namespace: Microsoft.ConfigurationManagement.Messaging.Messages.Server
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public void CopyTo(
string[] array,
int arrayIndex
)
public:
virtual void CopyTo(
array<String^>^ array,
int arrayIndex
) sealed
Public Sub CopyTo (
array As String(),
arrayIndex As Integer
)
Parameters
array
Type: System.String[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndex
Type: System.Int32The zero-based index in array at which copying begins.
Implements
ICollection<T>.CopyTo(T[], Int32)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | arrayIndex is less than 0. |
ArgumentException | One of the following:
|
See Also
DdmArrayProperty Class
Microsoft.ConfigurationManagement.Messaging.Messages.Server Namespace
Return to top