Partager via


SPQuotaTemplate Class

The SPQuotaTemplate class represents a reusable definition of a set of quotas that are applied to SharePoint sites in the deployment, including the messages associated with each quota and warning threshold.

System.Object

   Microsoft.SharePoint.Administration.SPQuota

      Microsoft.SharePoint.Administration.SPQuotaTemplate

Public Constructors

The following table shows the public constructors of the SPQuotaTemplate class and a brief description of each.

Name Description
SPQuotaTemplate Initializes a new instance of the SPQuotaTemplate class.

Public Properties

The following table shows the public properties of the SPQuotaTemplate class, the data type of each property, and a brief description of each.

Name Data Type Description
Name String Gets or sets the name of the quota template.
Value String Gets the ID of the quota template.

Thread Safety

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

Remarks

Use the QuotaTemplates property of the SPGlobalConfig 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.

Requirements

Namespace: Microsoft.SharePoint.Administration

Platforms: Microsoft Windows Server 2003

Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)

Security: Code Access Security