Share via


SPTaskUsageMonitoredScope constructor (SPDiagnosticsState, String)

Constructs an SPTaskUsageMonitoredScope for an asynchronous task

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    state As SPDiagnosticsState, _
    name As String _
)
'Usage
Dim state As SPDiagnosticsState
Dim name As String

Dim instance As New SPTaskUsageMonitoredScope(state, name)
public SPTaskUsageMonitoredScope(
    SPDiagnosticsState state,
    string name
)

Parameters

  • name
    Type: System.String

    Specifies the name of the scope taks that is being performed

See also

Reference

SPTaskUsageMonitoredScope class

SPTaskUsageMonitoredScope members

SPTaskUsageMonitoredScope overload

Microsoft.SharePoint.Administration namespace