SPQuotaTemplateCollection class
代表SPQuotaTemplate物件的集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.Administration.SPQuotaTemplateCollection
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<GuidAttribute("5A09CC15-125E-412e-8950-F96F7F67235F")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPQuotaTemplateCollection _
Inherits SPBaseCollection
'用途
Dim instance As SPQuotaTemplateCollection
[GuidAttribute("5A09CC15-125E-412e-8950-F96F7F67235F")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPQuotaTemplateCollection : SPBaseCollection
備註
使用SPWebService類別之QuotaTemplates屬性可傳回SPQuotaTemplateCollection物件,代表伺服器或伺服器陣列的配額範本的集合。若要建立配額範本,請使用Add方法。
若要從集合中傳回單一的配額範本中使用索引器。例如,若集合已指派給變數 myQuotaTemplates,使用myQuotaTemplates[index]以 C# 或 Visual Basic,其中index是範本集合中的索引編號,或是該範本的顯示名稱中的myQuotaTemplates(index) 。
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.