SPQuotaTemplate class
Represents a reusable definition of a quota that is applied to SharePoint sites in the deployment.
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("4F0D8E06-2C46-49f6-83E2-94B9925ACBDA")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPQuotaTemplate _
Inherits SPQuota
'Usage
Dim instance As SPQuotaTemplate
[GuidAttribute("4F0D8E06-2C46-49f6-83E2-94B9925ACBDA")]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPQuotaTemplate : SPQuota
Remarks
Use the QuotaTemplates property of the SPWebService class to return an SPQuotaTemplateCollection object that represents the collection of quota templates for a server or server farm. Use an indexer to return a single quota template from the collection. For example, if the collection is assigned to a variable named myQuotaTemplates, use myQuotaTemplates[index] in C#, or myQuotaTemplates(index) in Visual Basic .NET, where index is either the index number of the template in the collection or the display name of the template.
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.