共用方式為


SPDiagnosticsServiceBase.SetAll Method (EventSeverity)

Sets the threshold at which events associated with all categories are written to the event log.

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

Syntax

'Declaration
Public Sub SetAll ( _
    eventSeverity As EventSeverity _
)
'Usage
Dim instance As SPDiagnosticsServiceBase
Dim eventSeverity As EventSeverity

instance.SetAll(eventSeverity)
public void SetAll(
    EventSeverity eventSeverity
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

Thrown when eventSeverity is unmapped or out of range.

Remarks

Use this method to control the severity of all events captured in event logs. At less severe logging levels, the number of events logged will increase.

See Also

Reference

SPDiagnosticsServiceBase Class

SPDiagnosticsServiceBase Members

SetAll Overload

Microsoft.SharePoint.Administration Namespace