Share via


ComputerTargetGroupCollection.AddRange Method (ComputerTargetGroupCollection)

 

Applies To: Windows Server Update Services

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

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

Syntax

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

Parameters

Exceptions

Exception

Condition

ArgumentException

One or more members of the collection to be added already exist in this collection.

ArgumentNullException

value cannot be null.

Remarks

You can use this method to build a specific target group collection to pass to SetComputerTargetGroups.

To add an array of target groups to the collection, call AddRange

To create a target group, call CreateComputerTargetGroup.

See Also

AddRange Overload
ComputerTargetGroupCollection Class
Microsoft.UpdateServices.Administration Namespace

Return to top