共用方式為


IUpdate.GetUpdateEventHistory Method (DateTime, DateTime)

 

Applies To: Windows Server Update Services

Gets the event history associated with this update.

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 used to search for events that are associated with this update in Coordinated Universal Time.

  • toDate
    Type: System.DateTime

    End date used to search for events that are associated with this update in Coordinated Universal Time.

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateEventCollection

An UpdateEventCollection collection that contains the event history of this update 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. You can also call PurgeAssociatedReportingEvents to remove events.

See Also

IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top