Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPSite.GetCatalog method

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.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public SPList GetCatalog(
	SPListTemplateType typeCatalog
)

Parameters

typeCatalog
Type: Microsoft.SharePoint.SPListTemplateType

An SPListTemplateType value that specifies the type for the gallery

Return value

Type: 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.

Show:
© 2015 Microsoft