Partager via


IUpdate.PurgeAssociatedReportingEvents Method (DateTime, DateTime)

 

Applies To: Windows Server Update Services

Uses the specified date range to remove events that are associated with this update.

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

Syntax

void PurgeAssociatedReportingEvents(
    DateTime fromDate,
    DateTime toDate
)
void PurgeAssociatedReportingEvents(
    DateTime fromDate,
    DateTime toDate
)
abstract PurgeAssociatedReportingEvents : 
        fromDate:DateTime *
        toDate:DateTime -> unit
Sub PurgeAssociatedReportingEvents (
    fromDate As Date,
    toDate As Date
)

Parameters

  • fromDate
    Type: System.DateTime

    Begin date used to remove events that are associated with this update in Coordinated Universal Time.

  • toDate
    Type: System.DateTime

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

Exceptions

Exception

Condition

ArgumentOutOfRangeException

fromDate cannot be greater than toDate.

Remarks

Typically, events are removed based on the ServerEventExpirationTime configuration setting.

See Also

IUpdate Interface
Microsoft.UpdateServices.Administration Namespace

Return to top