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
value
Type: Microsoft.UpdateServices.Administration.ComputerTargetGroupCollectionThe collection of IComputerTargetGroup objects to add.
Exceptions
Exception
Condition
One or more members of the collection to be added already exist in this collection.
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