IUpdateServerConfiguration.ServerEventExpirationTime

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

public TimeSpan ServerEventExpirationTime {get; set;}
Public Property ServerEventExpirationTime As TimeSpan

Property Value

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 type Condition
System.ArgumentOutOfRangeException The time span cannot be less than zero.

Remarks

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

To remove events for a specific update, call IUpdate.PurgeAssociatedReportingEvents.

To view server 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.

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.

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.ClientEventExpirationTime
IUpdateServerConfiguration.ExpiredEventDetectionPeriod