IUpdateServer.GetUpdateEventHistory(DateTime, DateTime, IComputerTarget)

Retrieves all installation events that were raised by the specified client for the specified date range.

public UpdateEventCollection GetUpdateEventHistory(DateTimefromDate,
DateTimetoDate,
IComputerTargetcomputer);
Public Function GetUpdateEventHistory( _
  ByVal fromDate As DateTime, _
  ByVal toDate As DateTime, _
  ByVal computer As IComputerTarget _
) As UpdateEventCollection
Implements IUpdateServer.GetUpdateEventHistory

Parameters

  • fromDate
    Begin date that is used to search for events that were raised to the WSUS server by the specified client. Specify the date in Coordinated Universal Time.
  • toDate
    End date that is used to search for events that were raised to the WSUS server by the specified client. Specify the date in Coordinated Universal Time.
  • computer
    Client whose events you want to retrieve.

Return Value

An UpdateEventCollection collection of the installation events raised by the specified client for the specified date range.

Exceptions

Exception type Condition
System.ArgumentNullException computer cannot be null.
System.ArgumentOutOfRangeException fromDate cannot be greater than toDate.

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.