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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableMethodAttribute(CacheReturnValue := True)> _
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)
[ClientCallableMethodAttribute(CacheReturnValue = true)]
public SPList GetCatalog(
SPListTemplateType typeCatalog
)
Parameters
typeCatalog
Type: Microsoft.SharePoint.SPListTemplateTypeThe type for the gallery.
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.