다음을 통해 공유


SPResourceBudget Class

Monitors the usage of specified resources within a code block.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Utilities.SPMonitoredScope
    Microsoft.SharePoint.Utilities.SPResourceBudget

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

Syntax

'Declaration
Public Class SPResourceBudget _
    Inherits SPMonitoredScope
'Usage
Dim instance As SPResourceBudget
public class SPResourceBudget : SPMonitoredScope

Remarks

Important

If the specified resources are used more than expected an assert is activated. If the excessive usage occurs during a page browse the developer dashboard is automatically launched to display the issue.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPResourceBudget Members

Microsoft.SharePoint.Utilities Namespace