Share via


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)

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