SPExecutionTimeCounter Constructor (UInt32)

Initializes a new counter that measures the execution time of the scope and logs if the value exceeds the specified limit.

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

Syntax

'Declaration
Public Sub New ( _
    maxValue As UInteger _
)
'Usage
Dim maxValue As UInteger

Dim instance As New SPExecutionTimeCounter(maxValue)
public SPExecutionTimeCounter(
    uint maxValue
)

Parameters

  • maxValue
    Type: System.UInt32

    An unsigned 32-bit integer that represents the maximum amount of time expected for scope execution before the scope will be automatically traced. If the execution time exceeds the maxValue parameter, the trace level of the containing SPMonitoredScope object will be automatically elevated to the High trace level.

See Also

Reference

SPExecutionTimeCounter Class

SPExecutionTimeCounter Members

SPExecutionTimeCounter Overload

Microsoft.SharePoint.Utilities Namespace