Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EventLogRetentionPeriod property
Collapse the table of content
Expand the table of content

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
The amount of time to preserve event logs, ignoring hours, minutes, and seconds.


The current user is not a farm administrator.

© 2015 Microsoft