共用方式為


SPDiagnosticsService.LogCutInterval Property

Gets or sets the number of minutes to capture events to a single log file.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.LogCutInterval

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

Property Value

Type: System.Int32
A Int32 value from 0 to 1440 (24 hours), that specifies the number of minutes. The default value is 30.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The value set is either less than 0 or greater than 1440.

Remarks

When the specified time limit expires, the active log file is closed and a new log file is created.

See Also

Reference

SPDiagnosticsService Class

SPDiagnosticsService Members

Microsoft.SharePoint.Administration Namespace