共用方式為


SPDiagnosticsServiceBase.SetAll method (TraceSeverity)

設定的所有類別相關都聯的追蹤項目會寫入追蹤記錄檔的臨界值。

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

Syntax

'宣告
Public Sub SetAll ( _
    traceSeverity As TraceSeverity _
)
'用途
Dim instance As SPDiagnosticsServiceBase
Dim traceSeverity As TraceSeverity

instance.SetAll(traceSeverity)
public void SetAll(
    TraceSeverity traceSeverity
)

參數

Exceptions

Exception Condition
ArgumentOutOfRangeException

擲回traceSeverity未對應或範圍之外。

備註

使用此方法來控制所有事件追蹤記錄檔中擷取的嚴重性。較不嚴重的記錄層級會增加記錄的事件數。

請參閱

參照

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

SetAll overload

Microsoft.SharePoint.Administration namespace

ResetAll()