Quota Property

The Quota property of the SPSite class gets or sets a quota for the site collection.

Property Value

A Microsoft.SharePoint.Administration.SPQuota object that represents the quota.

Example

The following code example uses the Quota property to apply a quota template to a site collection on the specified virtual server.

This example requires using directives (Imports in Visual Basic) for both the Microsoft.SharePoint and Microsoft.SharePoint.Administration namespaces.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security