Freigeben über


SPAsyncThreadDiagnosticsContext-Konstruktor (SPDiagnosticsState, Boolean)

Erstellt eine neue Instanz der SPAsyncThreadDiagnosticsContext initialisieren mit den angegebenen Diagnose Zustand, aber mit ein neues Bezugsset-Id, wenn angefordert

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
)

Parameter

  • createNewCorrelationId
    Typ: System.Boolean

    Wenn true, erstellt ein neues Bezugsset-Id. Ist der Wert false ist, ist dieser Konstruktor für den ersten Konstruktor identisch.

Siehe auch

Referenz

SPAsyncThreadDiagnosticsContext Klasse

SPAsyncThreadDiagnosticsContext-Member

SPAsyncThreadDiagnosticsContext-Überladung

Microsoft.SharePoint.Utilities-Namespace