Share via


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)

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