ComputerTargetGroupCollection.AddRange Method (IComputerTargetGroup )

 

Applies To: Windows Server Update Services

Adds the elements of an array of IComputerTargetGroup objects to the end of the collection.

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

Syntax

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

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

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

To add a collection 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