ComputerTargetCollection.AddRange(IComputerTarget )

Adds the elements of an array of computers to the end of this collection.

public void AddRange(IComputerTarget[]value);
Public Sub AddRange( _
  ByVal value() As IComputerTarget _
)

Parameters

  • value
    Array of IComputerTarget whose elements are added to the end of this collection.

Return Value

This method does not return a value.

Exceptions

Exception type Condition
System.ArgumentException One or more elements of the array already exist in this collection.
System.ArgumentNullException value or elements of the array cannot be null.

Remarks

To add a single client computer to this collection, call ComputerTargetCollection.Add.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

ComputerTargetCollection.AddRange(ComputerTargetCollection)
IComputerTargetGroup.GetComputerTargets()