IDiagnosticsManager.GetItems method

NOTE: This API is now obsolete.

Gets a collection of all trace log categories for the application.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPDiagnosticsServiceBase")> _
Function GetItems As IEnumerable(Of IDiagnosticsLevel)
'Usage
Dim instance As IDiagnosticsManager
Dim returnValue As IEnumerable(Of IDiagnosticsLevel)

returnValue = instance.GetItems()
[ObsoleteAttribute("Use SPDiagnosticsServiceBase")]
IEnumerable<IDiagnosticsLevel> GetItems()

Return value

Type: System.Collections.Generic.IEnumerable<IDiagnosticsLevel>
Returns an enumerable collection of IDiagnosticsLevel objects.

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