SPMonitoredScope.AddMonitor<T> method
Adds a new monitor for this scope.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Protected Function AddMonitor(Of T As ISPScopedPerformanceMonitor) ( _
monitor As T _
) As T
'Usage
Dim monitor As T
Dim returnValue As T
returnValue = Me.AddMonitor(monitor)
protected T AddMonitor<T>(
T monitor
)
where T : ISPScopedPerformanceMonitor
Type parameters
- T
The type of monitor to add.
Parameters
monitor
Type: TThe monitor being added.
Return value
Type: T
The monitor that was added to the scope.