SP.Web.getAvailableWebTemplates(lcid, doIncludeCrossLanguage) Method

Applies to: SharePoint Foundation 2010

Returns a collection of site templates available for the site.

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

Parameters

  • lcid
    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

  • doIncludeCrossLanguage
    Specifies whether to include language-neutral site templates.

Type: Boolean

Return Value

Type: SP.WebTemplateCollection

Applies To

SP.Web Class

Exceptions

  • [System.UnauthorizedAccessException]
    The current user has insufficient permissions. Error code: -2147024891.

See Also

Reference

SP.Web Methods

SP.Web Properties

SP Namespace