Partager via


IUpdateServer.GetUpdateEventHistory Method (DateTime, DateTime, IComputerTarget)

 

Applies To: Windows Server Update Services

Gets all installation events that were raised by the specified client 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,
    IComputerTarget computer
)
UpdateEventCollection^ GetUpdateEventHistory(
    DateTime fromDate,
    DateTime toDate,
    IComputerTarget^ computer
)
abstract GetUpdateEventHistory : 
        fromDate:DateTime *
        toDate:DateTime *
        computer:IComputerTarget -> UpdateEventCollection
Function GetUpdateEventHistory (
    fromDate As Date,
    toDate As Date,
    computer As IComputerTarget
) As UpdateEventCollection

Parameters

  • fromDate
    Type: System.DateTime

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

  • toDate
    Type: System.DateTime

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

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateEventCollection

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

Exceptions

Exception

Condition

ArgumentNullException

computer cannot be null.

ArgumentOutOfRangeException

fromDate cannot be greater than toDate.

See Also

GetUpdateEventHistory Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top