Partager via


ComputerTargetCollection.AddRange Method (ComputerTargetCollection)

 

Applies To: Windows Server Update Services

Adds the members of a collection of computers to the end of this collection.

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

Syntax

public void AddRange(
    ComputerTargetCollection value
)
public:
void AddRange(
    ComputerTargetCollection^ value
)
member AddRange : 
        value:ComputerTargetCollection -> unit
Public Sub AddRange (
    value As ComputerTargetCollection
)

Parameters

Exceptions

Exception

Condition

ArgumentException

One or more members of the collection to add already exist in this collection. value contains elements which are already in the collection.

ArgumentNullException

value cannot be null reference.

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