Freigeben über


IUpdateServer.GetComputerTargetGroup Method (Guid)

 

Applies To: Windows Server Update Services

Gets the specified target group.

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

Syntax

IComputerTargetGroup GetComputerTargetGroup(
    Guid id
)
IComputerTargetGroup^ GetComputerTargetGroup(
    Guid id
)
abstract GetComputerTargetGroup : 
        id:Guid -> IComputerTargetGroup
Function GetComputerTargetGroup (
    id As Guid
) As IComputerTargetGroup

Parameters

Return Value

Type: Microsoft.UpdateServices.Administration.IComputerTargetGroup

An IComputerTargetGroup object used to manage the group of client computers and get update statistics for the group.

Exceptions

Exception

Condition

ArgumentNullException

id cannot be null.

WsusObjectNotFoundException

WSUS could not find the target group with the given identifier.

Remarks

To get the All Computers or Unassigned Computers target group, use AllComputers or UnassignedComputers, respectively.

Examples

The following example shows how to use the ComputerTargetGroupId class to get the All Computers computer group.

Dim AllComputersGroup As IComputerTargetGroup
AllComputersGroup = updateServer.GetComputerTargetGroup(ComputerTargetGroupId.AllComputers)

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top