IAutomaticUpdateApprovalRule.SetComputerTargetGroups Method (ComputerTargetGroupCollection)
Applies To: Windows Server Update Services
Sets the computer groups to which this automatic approval rule applies.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
void SetComputerTargetGroups(
ComputerTargetGroupCollection targetGroups
)
void SetComputerTargetGroups(
ComputerTargetGroupCollection^ targetGroups
)
abstract SetComputerTargetGroups :
targetGroups:ComputerTargetGroupCollection -> unit
Sub SetComputerTargetGroups (
targetGroups As ComputerTargetGroupCollection
)
Parameters
targetGroups
Type: Microsoft.UpdateServices.Administration.ComputerTargetGroupCollectionA ComputerTargetGroupCollection collection that contains the target computer groups to which this automatic approval rule applies.
Exceptions
Exception
Condition
targetGroups cannot be null.
Remarks
To save your changes, call Save.
See Also
IAutomaticUpdateApprovalRule Interface
Microsoft.UpdateServices.Administration Namespace
Return to top