共用方式為


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)
Available in Sandboxed Solutions: No

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