IUpdateServerConfiguration.ClientEventExpirationTime
Retrieves or sets the period of time that client events are retained before being removed from the database.
public TimeSpan ClientEventExpirationTime {get; set;}
Public Property ClientEventExpirationTime As TimeSpan
Property Value
Period of time that client events are retained before being removed from the database. The minimum unit of time is one day—fractions of a day are truncated (the property returns only the day value). The maximum unit of time is 365 days. The default is 15 days.
Exceptions
Exception type | Condition |
---|---|
System.ArgumentOutOfRangeException | The time span cannot be less than zero. |
Remarks
WSUS scans for client events to remove when it receives a client event and IUpdateServerConfiguration.ExpiredEventDetectionPeriod has elapsed.
To remove client events immediately, set ClientEventExpirationTime to 0. To remove events for a specific client, call IComputerTarget.PurgeAssociatedReportingEvents.
To view client events, call one of the IUpdateServer.GetUpdateEventHistory overloads. The collection returns both client and server events. Use IUpdateEvent.WsusEventSource to determine the event's origin.
Note that you can exceed the size of the database if there is a high volume of client events and you specify large value for ClientEventExpirationTime.
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. |
See Also
IUpdateServerConfiguration.ExpiredEventDetectionPeriod
IUpdateServerConfiguration.ServerEventExpirationTime