SPAsyncThreadDiagnosticsContext constructor (SPDiagnosticsState, Boolean)
建立 SPAsyncThreadDiagnosticsContext 初始化具有指定的診斷狀態,但使用新的相互關聯 Id,如果要求的新執行個體
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub New ( _
state As SPDiagnosticsState, _
createNewCorrelationId As Boolean _
)
'用途
Dim state As SPDiagnosticsState
Dim createNewCorrelationId As Boolean
Dim instance As New SPAsyncThreadDiagnosticsContext(state, createNewCorrelationId)
public SPAsyncThreadDiagnosticsContext(
SPDiagnosticsState state,
bool createNewCorrelationId
)
參數
state
Type: Microsoft.SharePoint.Utilities.SPDiagnosticsState指定要使用的診斷狀態
createNewCorrelationId
Type: System.Boolean如果為 true,就會建立新的相互關聯識別碼。若為 false,這個建構函式是前者的建構函式相同的。
請參閱
參照
SPAsyncThreadDiagnosticsContext class
SPAsyncThreadDiagnosticsContext members