SPDiagnosticsService.DaysToKeepLogs property

Gets or sets the number of days to store log files.

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

Syntax

'Declaration
Public Property DaysToKeepLogs As Integer
    Get
    Set
'Usage
Dim instance As SPDiagnosticsService
Dim value As Integer

value = instance.DaysToKeepLogs

instance.DaysToKeepLogs = value
public int DaysToKeepLogs { get; set; }

Property value

Type: System.Int32
The number of days.

See also

Reference

SPDiagnosticsService class

SPDiagnosticsService members

Microsoft.SharePoint.Administration namespace