Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds the members of a target group collection to the end of the collection.
public void AddRange(
ComputerTargetGroupCollection value
);
Public Sub AddRange( _
ByVal value As ComputerTargetGroupCollection _
)
Parameters
- value
A ComputerTargetGroupCollection collection of target groups to add.
Return Values
This method has no return values.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentException | One or more members of the collection to add already exist in this collection. |
| System.ArgumentNullException | value cannot be null. |
Remarks
You can use this method to build a specific target group collection to pass to IAutomaticUpdateApprovalRule.SetComputerTargetGroups.
To add an array of target groups to the collection, call ComputerTargetGroupCollection.AddRange(IComputerTargetGroup[]).
To create a target group, call IUpdateServer.CreateComputerTargetGroup.
Requirements
| Server | Requires Windows Server 2003 or Windows 2000 Server SP4 and later. |
| Namespace | Defined in Microsoft.UpdateServices.Administration. |
| Assembly | Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll). |
| .NET Framework | Requires .NET Framework 1.1. |
See Also
ComputerTargetGroupCollection.Add, ComputerTargetGroupCollection.AddRange(IComputerTargetGroup[])