IComputerTarget.GetComputerTargetGroup()
Retrieves the target group to which the client belongs.
public IComputerTargetGroup GetComputerTargetGroup();
Public Function GetComputerTargetGroup() As IComputerTargetGroup
Implements IComputerTarget.GetComputerTargetGroup
Parameters
This method has no parameters.
Return Value
An IComputerTargetGroup to which the client belongs.
Exceptions
Exception type | Condition |
---|---|
WsusObjectNotFoundException | The computer was not found in the database. |
Remarks
By default, all clients are members of the All Computers target group. The client can also be explicitly assigned to one other target group. The method returns the group to which the client is explicitly assigned or the Unassigned Computers target group.
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. |