SPMonitoredScope.Current Property

Gets the scoped segment of code that is currently being monitored.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Shared ReadOnly Property Current As SPMonitoredScope
    Get
'Usage
Dim value As SPMonitoredScope

value = SPMonitoredScope.Current
public static SPMonitoredScope Current { get; }

Property Value

Type: Microsoft.SharePoint.Utilities.SPMonitoredScope
A SPMonitoredScope object that represents the current monitored scope. If there is no such object, the value of this property is null.

Remarks

The current scope is the closest enclosing SPMonitoredScope instance.

See Also

Reference

SPMonitoredScope Class

SPMonitoredScope Members

Microsoft.SharePoint.Utilities Namespace