SPAsyncThreadDiagnosticsContext constructor (SPDiagnosticsState, Boolean)
Creates a new instance of the SPAsyncThreadDiagnosticsContext initializing it with the specified diagnostics state but using a new correlation Id if requested
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
state As SPDiagnosticsState, _
createNewCorrelationId As Boolean _
)
'Usage
Dim state As SPDiagnosticsState
Dim createNewCorrelationId As Boolean
Dim instance As New SPAsyncThreadDiagnosticsContext(state, createNewCorrelationId)
public SPAsyncThreadDiagnosticsContext(
SPDiagnosticsState state,
bool createNewCorrelationId
)
Parameters
state
Type: Microsoft.SharePoint.Utilities.SPDiagnosticsStateSpecifies the diagnostics state to be used
createNewCorrelationId
Type: System.BooleanIf true, creates a new correlation Id. If false, this constructor is identical to the former constructor.
See also
Reference
SPAsyncThreadDiagnosticsContext class
SPAsyncThreadDiagnosticsContext members