Share via


IDiagnosticsManager.GetItem Method

NOTE: This API is now obsolete.

Gets the specified trace log category.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPDiagnosticsServiceBase")> _
Function GetItem ( _
    name As String _
) As IDiagnosticsLevel
'Usage
Dim instance As IDiagnosticsManager
Dim name As String
Dim returnValue As IDiagnosticsLevel

returnValue = instance.GetItem(name)
[ObsoleteAttribute("Use SPDiagnosticsServiceBase")]
IDiagnosticsLevel GetItem(
    string name
)

Parameters

  • name
    Type: System.String

    The name of the trace log category to return.

Return Value

Type: Microsoft.SharePoint.Administration.IDiagnosticsLevel
A IDiagnosticsLevel class instance that represents the trace log category.

See Also

Reference

IDiagnosticsManager Interface

IDiagnosticsManager Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Trace Logs

Trace Log Categories

Writing to the Trace Log

Trace Log Example