IComputerTarget.GetComputerTargetGroups Method ()

 

Applies To: Windows Server Update Services

Gets the computer groups to which this computer belongs.

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

Syntax

ComputerTargetGroupCollection GetComputerTargetGroups()
ComputerTargetGroupCollection^ GetComputerTargetGroups()
abstract GetComputerTargetGroups : unit -> ComputerTargetGroupCollection
Function GetComputerTargetGroups As ComputerTargetGroupCollection

Return Value

Type: Microsoft.UpdateServices.Administration.ComputerTargetGroupCollection

The collection of computer groups to which this computer belongs.

Exceptions

Exception

Condition

WsusObjectNotFoundException

The computer target group was not found.

Remarks

If the computer is not explicitly a member of any computer group, the Unassigned computer group will be returned.

See Also

IComputerTarget Interface
Microsoft.UpdateServices.Administration Namespace

Return to top