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)

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