SP.Web.getCatalog(typeCatalog) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

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

var value = SP.Web.getCatalog(typeCatalog);

Parameters

typeCatalog

Type: SP.ListTemplateType

The type of the gallery.

Return Value

Type: SP.List

The gallery of the list template, site template, or Web Part.

Applies To

SP.Web Class

Remarks

This method returns null if there is no gallery with the specified type or typeCatalog is not a valid SP.ListTemplateType Enumeration enumeration value.

See Also

Reference

SP.Web Methods

SP.Web Properties

SP Namespace