Share via


IUpdateServer.GetComputerTargetGroup(Guid)

Retrieves the specified target group.

public IComputerTargetGroup GetComputerTargetGroup(
  Guid id
);
Public Function GetComputerTargetGroup( _
  ByVal id As Guid _
) As IComputerTargetGroup
Implements IUpdateServer.GetComputerTargetGroup

Parameters

  • id
    Unique identifier of the target group.

Return Values

An IComputerTargetGroup whose properties and methods you use to manage the group of client computers and retrieve update statistics for the group.

Exceptions

Exception type Condition
System.ArgumentNullException id cannot be null.
WsusObjectNotFoundException WSUS could not find the target group with the given identifier.

Remarks

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

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

IUpdateServer.GetComputerTargetGroups