Copies the elements of the collection that is supported by the group to the indicated array, starting at the specified array index. This method supports the Configuration Manager infrastructure and is not intended to be used directly from your code. Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)

Usage

Visual Basic
Dim instance As SmsSummaryActionGroup
Dim array As SmsSummaryAction()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)

Syntax

Visual Basic
Public Sub CopyTo ( _
		array As SmsSummaryAction(), _
		arrayIndex As Integer _
)
C#
public void CopyTo (
		SmsSummaryAction[] array,
		int arrayIndex
)
C++
public:
virtual void CopyTo (
		array<SmsSummaryAction^>^ array, 
		int arrayIndex
) sealed
J#
public final void CopyTo (
		SmsSummaryAction[] array, 
		int arrayIndex
)
JScript
public final function CopyTo (
		array : SmsSummaryAction[], 
		arrayIndex : int
)

Parameters

array

[in] Array of SmsSummaryAction objects.

arrayIndex

[in] Index into the array.

Exceptions

Exception type Condition
ArgumentOutOfRangeException

The arrayIndex parameter is less than 0.

ArgumentNullException

The array parameter cannot be null.

ArgumentException

The specified array is multidimensional.

-or-

The array index is equal to or greater than the length of the array.

-or-

The number of elements in the source System.Collections.Generic.ICollection object is greater than the available space from the array index to the end of the destination array.

-or-

Type T cannot be cast automatically to the type of the destination array.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also