Share via


IUpdateServer.GetComputerTarget(String)

Retrieves the specified client computer.

public IComputerTarget GetComputerTarget(
  String id
);
Public Function GetComputerTarget( _
  ByVal id As String _
) As IComputerTarget
Implements IUpdateServer.GetComputerTarget

Parameters

  • id
    Unique identifier of the client that you want to retrieve. For details, see IComputerTarget.Id.

Return Values

An IComputerTarget that represents the specified client computer. Use the interface to retrieve client metadata, for example, its IP address or domain name.

Exceptions

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

Remarks

Note that the metadata may not exist if the client has not yet contacted the WSUS server.

To retrieve a computer target using a full domain name, call IUpdateServer.SearchComputerTargets(String).

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.GetComputerTargets