共用方式為


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)
Available in Sandboxed Solutions: No

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