共用方式為


IDiagnosticsManager.GetItems method

NOTE: This API is now obsolete.

取得集合的所有追蹤記錄檔類別的應用程式。

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

Syntax

'宣告
<ObsoleteAttribute("Use SPDiagnosticsServiceBase")> _
Function GetItems As IEnumerable(Of IDiagnosticsLevel)
'用途
Dim instance As IDiagnosticsManager
Dim returnValue As IEnumerable(Of IDiagnosticsLevel)

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

傳回值

Type: System.Collections.Generic.IEnumerable<IDiagnosticsLevel>
傳回列舉IDiagnosticsLevel物件的集合。

請參閱

參照

IDiagnosticsManager interface

IDiagnosticsManager members

Microsoft.SharePoint.Administration namespace

其他資源

Trace Logs

Trace Log Categories

Writing to the Trace Log

Trace Log Example