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
array
Type: Microsoft.UpdateServices.Administration.IComputerTargetGroup[]The one-dimensional array of IComputerTargetGroup objects that is the destination of the elements copied from the collection. The array must have zero-based indexing.
index
Type: System.Int32The zero-based index that specifies the location in the array at which to begin adding the IComputerTargetGroup objects.
Exceptions
Exception
Condition
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.
array cannot be a null reference (Nothing in Visual Basic).
array cannot be less than zero.
See Also
CopyTo Overload
ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top