SPDiagnosticsService.SetItem 方法 (Int32, TraceSeverity, EventSeverity)
请注意:此 API 现在已过时。
此成员仅供内部使用,不能直接在您的代码中使用。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<ObsoleteAttribute("directly modify severities on SPDiagnosticsCategory")> _
Public Sub SetItem ( _
key As Integer, _
traceSeverity As TraceSeverity, _
eventSeverity As EventSeverity _
)
用法
Dim instance As SPDiagnosticsService
Dim key As Integer
Dim traceSeverity As TraceSeverity
Dim eventSeverity As EventSeverity
instance.SetItem(key, traceSeverity, eventSeverity)
[ObsoleteAttribute("directly modify severities on SPDiagnosticsCategory")]
public void SetItem(
int key,
TraceSeverity traceSeverity,
EventSeverity eventSeverity
)
参数
key
类型:System.Int32一个Int32的值。
traceSeverity
类型:Microsoft.SharePoint.Administration.TraceSeverity一个TraceSeverity值,表示报告给跟踪日志的关键程度最低的事件。
eventSeverity
类型:Microsoft.SharePoint.Administration.EventSeverity一个EventSeverity值,表示报告到 Windows 事件日志的关键程度最低的事件。