IDiagnosticsManager.GetItem method
NOTE: This API is now obsolete.
會取得指定的追蹤記錄檔類別。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<ObsoleteAttribute("Use SPDiagnosticsServiceBase")> _
Function GetItem ( _
name As String _
) As IDiagnosticsLevel
'用途
Dim instance As IDiagnosticsManager
Dim name As String
Dim returnValue As IDiagnosticsLevel
returnValue = instance.GetItem(name)
[ObsoleteAttribute("Use SPDiagnosticsServiceBase")]
IDiagnosticsLevel GetItem(
string name
)
參數
name
Type: System.String要傳回之追蹤記錄檔類別的名稱。
傳回值
Type: Microsoft.SharePoint.Administration.IDiagnosticsLevel
代表追蹤記錄檔類別IDiagnosticsLevel類別執行個體。
請參閱
參照
Microsoft.SharePoint.Administration namespace