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
key
Type: System.Int32A Int32 value.
traceSeverity
Type: Microsoft.SharePoint.Administration.TraceSeverityA TraceSeverity value that represents the least critical event to report to the trace log.
eventSeverity
Type: Microsoft.SharePoint.Administration.EventSeverityAn EventSeverity value that represents the least critical event to report to the Windows event log.