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)

Syntax

'Declaration
Public Function GetCatalog ( _
    typeCatalog As SPListTemplateType _
) As SPList
'Usage
Dim instance As SPWeb
Dim typeCatalog As SPListTemplateType
Dim returnValue As SPList

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

Parameters

Return value

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

Remarks

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

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace