SPWeb.GetCatalog method

Gets the list template gallery, site template gallery, or Web Parts page gallery for the website.

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

public SPList GetCatalog(
	SPListTemplateType typeCatalog
)

Parameters

typeCatalog
Type: Microsoft.SharePoint.SPListTemplateType

The type for the gallery.

Return value

Type: Microsoft.SharePoint.SPList
The gallery with the specified template type.

This method returns null if the requested list template gallery, site template gallery, or Web Parts page gallery cannot be found.

Show: