IUpdateServerConfiguration.ClientEventExpirationTime Property

 

Applies To: Windows Server Update Services

Gets or sets the period of time for which client events are retained before being removed from the database.

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

Syntax

TimeSpan ClientEventExpirationTime { get; set; }
property TimeSpan ClientEventExpirationTime {
    TimeSpan get();
    void set(TimeSpan value);
}
abstract ClientEventExpirationTime : TimeSpan with get, set
Property ClientEventExpirationTime As TimeSpan

Property Value

Type: System.TimeSpan

The period of time for which 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

Condition

ArgumentOutOfRangeException

The time span cannot be less than zero.

Remarks

WSUS scans for client events to remove when it receives a client event and ExpiredEventDetectionPeriod has elapsed.

To remove client events immediately, set ClientEventExpirationTime to 0. To remove events for a specific client, call PurgeAssociatedReportingEvents.

To view client events, call GetUpdateEventHistory or one of its overloads. The collection returns both client and server events. Use WsusEventSource to determine the event's origin.

Note

You can exceed the size of the database if there is a high volume of client events and you specify a large value for ClientEventExpirationTime.

See Also

IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace

Return to top