ClientEventExpirationTime Property

IUpdateServerConfiguration.ClientEventExpirationTime Property

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)

TimeSpan ClientEventExpirationTime { get; set; }
/** @property */
TimeSpan get_ClientEventExpirationTime ()

/** @property */
void set_ClientEventExpirationTime (TimeSpan value)

function get ClientEventExpirationTime () : TimeSpan

function set ClientEventExpirationTime (value : TimeSpan)

Property Value

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.

Exception typeCondition

The time span cannot be less than zero.

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 one of the GetUpdateEventHistory overloads. The collection returns both client and server events. Use WsusEventSource to determine the event's origin.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
© 2016 Microsoft