SPSite.GetCatalog 方法

Returns the list template gallery, site template gallery, Web Part gallery, master page gallery, or other galleries from the site collection, including custom galleries that are defined by users.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function GetCatalog ( _
    typeCatalog As SPListTemplateType _
) As SPList
用法
Dim instance As SPSite
Dim typeCatalog As SPListTemplateType
Dim returnValue As SPList

returnValue = instance.GetCatalog(typeCatalog)
public SPList GetCatalog(
    SPListTemplateType typeCatalog
)

参数

返回值

类型:Microsoft.SharePoint.SPList
An SPList object that represents the gallery.

备注

The GetCatalog method requires permission to the root Web site of the site collection, which is where the galleries are located.

另请参阅

引用

SPSite 类

SPSite 成员

Microsoft.SharePoint 命名空间