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
)
參數
eventSeverity
Type: Microsoft.SharePoint.Administration.EventSeverity報表上事件記錄檔都代表最重要的事件EventSeverity值。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | 擲回eventSeverity未對應或範圍之外。 |
備註
使用此方法來控制擷取事件記錄檔中的所有事件的嚴重性。較不嚴重的記錄層級會增加記錄的事件數。
請參閱
參照
SPDiagnosticsServiceBase class