getAvailableWebTemplates(lcid, doIncludeCrossLanguage) Method

SP.Web.getAvailableWebTemplates(lcid, doIncludeCrossLanguage) Method

SharePoint 2010

Last modified: May 27, 2011

Applies to: SharePoint Foundation 2010

Returns a collection of site templates available for the site.

var value = SP.Web.getAvailableWebTemplates(lcid, doIncludeCrossLanguage);


Specifies the LCID of the site templates to be retrieved.

If the specified LCID is not a valid LCID, the server must return an empty collection.

An LCID is a 4-byte value. The value supplied in an LCID is a standard numeric substitution for the international [RFC4646] string.

Type: int


Specifies whether to include language-neutral site templates.

Type: Boolean


The current user has insufficient permissions. Error code: -2147024891.

© 2016 Microsoft