Share via


IComputerTarget.PurgeAssociatedReportingEvents(DateTime, DateTime)

Removes the events that are associated with the client.

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

Parameters

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

Return Values

This method has no return values.

Exceptions

Exception type Condition
ArgumentOutOfRangeException fromDate must be less 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.