SPQuota.StorageMaximumLevel 属性
获取或设置所有的磁盘空间限制使用的网站集。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property StorageMaximumLevel As Long
Get
Set
用法
Dim instance As SPQuota
Dim value As Long
value = instance.StorageMaximumLevel
instance.StorageMaximumLevel = value
public long StorageMaximumLevel { get; set; }
属性值
类型:System.Int64
64 位整数,该整数指定使用的磁盘空间的限制。默认值为 0 (零)。
示例
下面的代码示例设置指定的站点集合中的最大级别和存储的警告级别。
Dim siteCollection As New SPSite("http://MySiteCollection")
Dim quota As SPQuota = siteCollection.Quota
quota.StorageMaximumLevel = 20000000 'bytes
quota.StorageWarningLevel = 10000000 'bytes
siteCollection.Quota = quota
SPSite siteCollection = new SPSite("http://MySiteCollection");
SPQuota quota = siteCollection.Quota;
quota.StorageMaximumLevel = 20000000; //bytes
quota.StorageWarningLevel = 10000000; //bytes
siteCollection.Quota = quota;