다음을 통해 공유


SPCriticalTraceCounter Members

Include Protected Members
Include Inherited Members

This monitor tracks critical windows events and asserts that occur during an operation, such as a page browse. Tracking includes the event text, id, call stack.

The SPCriticalTraceCounter type exposes the following members.

Constructors

  Name Description
Public method SPCriticalTraceCounter Initializes a new instance of the [Microsoft.SharePoint.Utilities.SPCriticalTraceCounter] class.

Top

Properties

  Name Description
Public property Description A friendly description of the counter.
Public propertyStatic member IsEnabled If this value is true traces will be collected and shown in the dashboard.
Public property Name A friendly name for the trace counter.
Public property Value The number of traces collected.
Public property ValueIsExcessive Indicates whether asserts or unexpected traces have occurred or not.

Top

Methods

  Name Description
Public methodStatic member AddDataToScope Saves the specified critical trace information in the context for later reporting.
Public method Dispose Dispose method for this instance of [Microsoft.SharePoint.Utilities.SPCriticalTraceCounter].
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public methodStatic member Initialize() Enabling this monitor will automatically launch the developer dashboard, which will activate the [Microsoft.SharePoint.Diagnostics.ULS.SendTraceToHttpContext] callback which will let this monitor collect the critical trace.
Public methodStatic member Initialize(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.
Protected method MemberwiseClone (Inherited from Object.)
Public method RenderValueForWeb Renders the event in an HTML table.
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SPCriticalTraceCounter Class

Microsoft.SharePoint.Utilities Namespace