IUpdateServer.GetUpdateEventHistory Method (DateTime, DateTime)

 

Applies To: Windows Server Update Services

Gets all installation events for all clients for the specified date range.

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

Syntax

UpdateEventCollection GetUpdateEventHistory(
    DateTime fromDate,
    DateTime toDate
)
UpdateEventCollection^ GetUpdateEventHistory(
    DateTime fromDate,
    DateTime toDate
)
abstract GetUpdateEventHistory : 
        fromDate:DateTime *
        toDate:DateTime -> UpdateEventCollection
Function GetUpdateEventHistory (
    fromDate As Date,
    toDate As Date
) As UpdateEventCollection

Parameters

  • fromDate
    Type: System.DateTime

    Begin date to search for events raised to the WSUS server by all clients. Specify the date in Coordinated Universal Time.

  • toDate
    Type: System.DateTime

    End date to search for events raised to the WSUS server by all clients. Specify the date in Coordinated Universal Time.

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateEventCollection

An UpdateEventCollection collection of the installation events that were raised by all clients for the specified date range.

Exceptions

Exception

Condition

ArgumentOutOfRangeException

fromDate cannot be greater than toDate.

Remarks

Events are removed based on the ServerEventExpirationTime configuration setting.

See Also

GetUpdateEventHistory Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top