Share via


SPDiagnosticsService.GetItem Method (Int32)

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("Use SPDiagnosticsServiceBase.Categories")> _
Public Function GetItem ( _
    key As Integer _
) As IDiagnosticsLevel
'Usage
Dim instance As SPDiagnosticsService
Dim key As Integer
Dim returnValue As IDiagnosticsLevel

returnValue = instance.GetItem(key)
[ObsoleteAttribute("Use SPDiagnosticsServiceBase.Categories")]
public IDiagnosticsLevel GetItem(
    int key
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.IDiagnosticsLevel
An IDiagnosticsLevel object that represents a reporting category. If a category with the key value is not registered in the farm, the method returns a new object with default settings in the TraceSeverity and EventSeverity properties.

See Also

Reference

SPDiagnosticsService Class

SPDiagnosticsService Members

GetItem Overload

Microsoft.SharePoint.Administration Namespace