IUpdateEvent.GetComputer()
Retrieves the client computer that is associated with this event.
public IComputerTarget GetComputer();
Public Function GetComputer() As IComputerTarget
Implements IUpdateEvent.GetComputer
Parameters
This method has no parameters.
Return Values
An IComputerTarget that represents the client computer that is associated with this event.
Exceptions
| Exception type | Condition |
|---|---|
| System.InvalidOperationException | The event is not associated with a client computer (IUpdateEvent.HasAssociatedComputer is false). |
| WsusObjectNotFoundException | The client computer is no longer registered with the WSUS server. |
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. |