Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWebApplication.EventLogRetentionPeriod property

Gets or sets the amount of time to preserve event logs.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public TimeSpan EventLogRetentionPeriod { get; set; }

Property value

Type: System.TimeSpan
TimeSpan
The amount of time to preserve event logs, ignoring hours, minutes, and seconds.
ExceptionCondition
SecurityException

The current user is not a farm administrator.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.