IComputerTarget.GetComputerTargetGroup MethodÂ
[WSUS 3.0 API - This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Retrieves the target group to which the client belongs.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in microsoft.updateservices.administration.dll)
Syntax
'Declaration
Function GetComputerTargetGroup As IComputerTargetGroup
'Usage
Dim instance As IComputerTarget
Dim returnValue As IComputerTargetGroup
returnValue = instance.GetComputerTargetGroup
IComputerTargetGroup GetComputerTargetGroup ()
IComputerTargetGroup^ GetComputerTargetGroup ()
IComputerTargetGroup GetComputerTargetGroup ()
function GetComputerTargetGroup () : IComputerTargetGroup
Return Value
An IComputerTargetGroup to which the client belongs.
Exceptions
| Exception type | Condition |
|---|---|
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.
Platforms
Windows Server 2003
See Also
Reference
IComputerTarget Interface
IComputerTarget Members
Microsoft.UpdateServices.Administration Namespace
.gif)