IUpdateServerConfiguration.ServerEventExpirationTime Property

 

Applies To: Windows Server Update Services

Gets or sets the period of time that server events are retained before being removed from the database.

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

Syntax

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

Property Value

Type: System.TimeSpan

The period of time that server 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 90 days.

Exceptions

Exception

Condition

ArgumentOutOfRangeException

The time span cannot be less than zero.

Remarks

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

To remove events for a specific update, call PurgeAssociatedReportingEvents.

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

WSUS uses subscription server events to generate synchronization history. The synchronization history is lost when subscription server events are removed.

Note that you can exceed the size of the database if there is a high volume of server events and you specify large value for ServerEventExpirationTime.

See Also

IUpdateServerConfiguration Interface
Microsoft.UpdateServices.Administration Namespace

Return to top