SPQuotaTemplateCollection Class

Represents a collection of SPQuotaTemplate objects.

Inheritance Hierarchy


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


<GuidAttribute("5A09CC15-125E-412e-8950-F96F7F67235F")> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPQuotaTemplateCollection _
    Inherits SPBaseCollection
Dim instance As SPQuotaTemplateCollection
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPQuotaTemplateCollection : SPBaseCollection


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. To create a quota template, use the Add method.

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, 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.

See Also


SPQuotaTemplateCollection Members

Microsoft.SharePoint.Administration Namespace