Share via


SPMonitoredScope Members

Include Protected Members
Include Inherited Members

Monitors performance and resource use for a specified scoped block of code.

The SPMonitoredScope type exposes the following members.

Constructors

  Name Description
Public method SPMonitoredScope(String) Creates a new instance of a monitor and associates the monitor with a given scope.
Public method SPMonitoredScope(String, UInt32, []) Creates a set of monitors and initializes them for use with a given scope using a specified friendly name and for a given duration of operation.

Top

Properties

  Name Description
Public property Children
Public propertyStatic member Current Gets the scoped segment of code that is currently being monitored.
Public property Id
Public property Monitors Gets the monitors that are associated with a given scope.
Public property Name Gets or sets the friendly name for a given scoped block of code.
Public property Parent

Top

Methods

  Name Description
Protected method AddMonitor<T>
Public method Dispose()
Protected method Dispose(Boolean)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetMonitor<T> Retrieves the monitor of the specified type from the current scope.
Public method GetMonitorRecursive<T>
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDisposing Releases all monitors and then calls methods to log monitoring statistics and to set the previous scope to the current scope.
Public method ToString (Inherited from Object.)

Top

See Also

Reference

SPMonitoredScope Class

Microsoft.SharePoint.Utilities Namespace