Partager via


ComputerTargetCollection.AddRange Method (IComputerTarget )

 

Applies To: Windows Server Update Services

Adds the elements of a ComputerTarget array to the end of this collection.

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

Syntax

public void AddRange(
    IComputerTarget[] value
)
public:
void AddRange(
    array<IComputerTarget^>^ value
)
member AddRange : 
        value:IComputerTarget[] -> unit
Public Sub AddRange (
    value As IComputerTarget()
)

Parameters

Exceptions

Exception

Condition

ArgumentException

One or more elements of the array already exist in this collection.

ArgumentNullException

value or elements of the array cannot be null.

Remarks

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

See Also

AddRange
GetComputerTargets
AddRange Overload
ComputerTargetCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top