共用方式為


SPDiagnosticsService.SetItem Method (Int32, TraceSeverity, EventSeverity)

NOTE: This API is now obsolete.

This member is reserved for internal use and is not intended to be used directly from your code.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("directly modify severities on SPDiagnosticsCategory")> _
Public Sub SetItem ( _
    key As Integer, _
    traceSeverity As TraceSeverity, _
    eventSeverity As EventSeverity _
)
'Usage
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
)

Parameters

See Also

Reference

SPDiagnosticsService Class

SPDiagnosticsService Members

SetItem Overload

Microsoft.SharePoint.Administration Namespace