Share via


SPQuota class

Represents a quota that limits the system resources that are allocated to users.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPQuota
      Microsoft.SharePoint.Administration.SPQuotaTemplate

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

Syntax

'Declaration
<GuidAttribute("0744D79A-CB14-4ba4-8FDA-32161133D87D")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPQuota _
    Inherits SPAutoSerializingObject
'Usage
Dim instance As SPQuota
[GuidAttribute("0744D79A-CB14-4ba4-8FDA-32161133D87D")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPQuota : SPAutoSerializingObject

Remarks

Use the Quota property of the SPSite class to return the quota for a site collection.

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

SPQuota members

Microsoft.SharePoint.Administration namespace