Share via


IUpdateEvent.GetComputer Method ()

 

Applies To: Windows Server Update Services

Gets the client computer associated with this event.

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

Syntax

IComputerTarget GetComputer()
IComputerTarget^ GetComputer()
abstract GetComputer : unit -> IComputerTarget
Function GetComputer As IComputerTarget

Return Value

Type: Microsoft.UpdateServices.Administration.IComputerTarget

An IComputerTarget that represents the client computer associated with this event.

Exceptions

Exception

Condition

InvalidOperationException

The event is not associated with a client computer (HasAssociatedComputer is false).

WsusObjectNotFoundException

The client computer is no longer registered with the WSUS server.

See Also

IUpdateEvent Interface
Microsoft.UpdateServices.Administration Namespace

Return to top