Share via


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

  • createNewCorrelationId
    Type: System.Boolean

    If true, creates a new correlation Id. If false, this constructor is identical to the former constructor.

See also

Reference

SPAsyncThreadDiagnosticsContext class

SPAsyncThreadDiagnosticsContext members

SPAsyncThreadDiagnosticsContext overload

Microsoft.SharePoint.Utilities namespace