共用方式為


SPDiagnosticsState.Current property

傳回可用於非同步作業期間提供診斷資料的 SPDiagnosticsState 物件的執行個體

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

Syntax

'宣告
Public Shared ReadOnly Property Current As SPDiagnosticsState
    Get
'用途
Dim value As SPDiagnosticsState

value = SPDiagnosticsState.Current
public static SPDiagnosticsState Current { get; }

Property value

Type: Microsoft.SharePoint.Utilities.SPDiagnosticsState
使用中的執行緒會傳回 null if 的 SPDiagnosticsState 類別的執行個體

請參閱

參照

SPDiagnosticsState class

SPDiagnosticsState members

Microsoft.SharePoint.Utilities namespace