Share via


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

  • arrayIndex
    Type: System.Int32

    The 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:

  • array is multidimensional.

  • The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

  • Type.

See Also

DdmArrayProperty Class
Microsoft.ConfigurationManagement.Messaging.Messages.Server Namespace

Return to top