共用方式為


SPDiagnosticsServiceBase.SetAll method (EventSeverity)

將所有類別相關都聯的事件寫入至事件記錄檔的臨界值。

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

Syntax

'宣告
Public Sub SetAll ( _
    eventSeverity As EventSeverity _
)
'用途
Dim instance As SPDiagnosticsServiceBase
Dim eventSeverity As EventSeverity

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

參數

Exceptions

Exception Condition
ArgumentOutOfRangeException

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

備註

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

請參閱

參照

SPDiagnosticsServiceBase class

SPDiagnosticsServiceBase members

SetAll overload

Microsoft.SharePoint.Administration namespace