Share via


IUpdate.PurgeAssociatedReportingEvents(DateTime, DateTime)

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

public void PurgeAssociatedReportingEvents(DateTimefromDate,
DateTimetoDate);
Public Sub PurgeAssociatedReportingEvents( _
  ByVal fromDate As DateTime, _
  ByVal toDate As DateTime _
)
Implements IUpdate.PurgeAssociatedReportingEvents

Parameters

  • fromDate
    Begin date that is used to remove events that are associated with this update. Specify the date in Coordinated Universal Time.
  • toDate
    End date that is used to remove events that are associated with this update. Specify the date in Coordinated Universal Time.

Return Value

This method does not return a value.

Exceptions

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

Remarks

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

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.