SPCriticalTraceCounter.Initialize method (UInt32, Int32)

If this monitor is enabled and if the trace meets certain criteria this call will launch the developer dashboard which will activate the [Microsoft.SharePoint.Diagnostics.ULS.SendTraceToHttpContext] callback which will let this monitor collect the critical trace.

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

Syntax

'Declaration
Public Shared Sub Initialize ( _
    tagID As UInteger, _
    traceLevel As Integer _
)
'Usage
Dim tagID As UInteger
Dim traceLevel As IntegerSPCriticalTraceCounter.Initialize(tagID, traceLevel)
public static void Initialize(
    uint tagID,
    int traceLevel
)

Parameters

  • traceLevel
    Type: System.Int32

    A System.Int32 of the trace level of the event.

Remarks

If tagID matches one of the values in [SPDeveloperDashboardSettings.AdditionalEventsToTrack] this instance will be treated as a critical trace, regardless of verbosity level.

See also

Reference

SPCriticalTraceCounter class

SPCriticalTraceCounter members

Initialize overload

Microsoft.SharePoint.Utilities namespace