SPListTemplateCollection class
表示SPListTemplate物件的集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.SPAutoSerializingObject
Microsoft.SharePoint.SPBaseCollection
Microsoft.SharePoint.SPListTemplateCollection
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SPListTemplateCollection _
Inherits SPBaseCollection
'用途
Dim instance As SPListTemplateCollection
public class SPListTemplateCollection : SPBaseCollection
備註
您可以使用SPWeb類別的ListTemplates屬性,傳回SPListTemplateCollection物件,表示 Web 站台的清單定義的集合。使用SPSite類別的GetCustomListTemplates方法,傳回SPListTemplateCollection物件,表示網站集合的清單範本集合。若要從集合傳回單一清單定義或清單範本中使用索引子。例如,如果集合指派給一個名為myListTemplates變數,請在 Microsoft Visual C#,或myListTemplates(index) 在 Microsoft Visual Basic,其中index是定義或範本集合中的索引編號或定義或範本的名稱中使用myListTemplates[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.