SharePoint2007Provider::SetSiteQuota

This procedure sets a quota on a site collection that limits the system resources allocated to users.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of Windows SharePoint Services site collection.

<warningLevel>

Yes

The database size in bytes which will generate a warning.

<maxDBSize>

Yes

The database size in bytes which will pervent further growth of the SiteCollections Content Database.

Remarks

  • The caller must be a member of the local administrators group, or the group that is designated as the SharePoint Administrators Group Account.

  • <warningLevel> can be set to any integer equal or greater than 0. It is possible that Sharepoint will throw an error:"Warning storage level must be an integer that is greater than 0 and less than the maximum storage level". As this error is thrown by Sharepoint, not Sharepoint Provider, it can not be modified. The error message can be safely ignored if <warningLevel> is set to be non-negative integer.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="SetSiteQuota" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>b17cfb65-ab6d-46a0-bbdc-afc47a0c49a4</siteGUID> 
            <warningLevel>10000000</warningLevel> 
            <maxDBSize>20000000</maxDBSize> 
         </executeData> 
      </execute> 
   </procedure> 
</request>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::GetSiteQuota
SharePoint2007Provider::ModifySiteQuota