次の方法で共有


ComputerTargetGroupCollection.CopyTo Method (IComputerTargetGroup , Int32)

 

Applies To: Windows Server Update Services

Copies the entire collection to a one-dimensional array, starting at the specified index of the target array.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public void CopyTo(
    IComputerTargetGroup[] array,
    int index
)
public:
void CopyTo(
    array<IComputerTargetGroup^>^ array,
    int index
)
member CopyTo : 
        array:IComputerTargetGroup[] *
        index:int -> unit
Public Sub CopyTo (
    array As IComputerTargetGroup(),
    index As Integer
)

Parameters

Exceptions

Exception

Condition

ArgumentException

Can occur because of either of the following reasons:

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

  • The number of elements from index to the end of the array is less than the number of elements in the source ComputerTargetGroupCollection.

ArgumentNullException

array cannot be a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

array cannot be less than zero.

See Also

CopyTo Overload
ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top