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
)

参数

另请参阅

引用

SPDiagnosticsService 类

SPDiagnosticsService 成员

SetItem 重载

Microsoft.SharePoint.Administration 命名空间