SP.Web.applyWebTemplate(strWebTemplate) Method

SharePoint 2010

Last modified: May 27, 2011

Applies to: SharePoint Foundation 2010

Applies the specified site definition or site template to the website that has no template applied to it.

SP.Web.applyWebTemplate(strWebTemplate);

strWebTemplate

Type: string

The name of the site definition or the file name of the site template.

This method applies the specified site definition or site template to the website.

Show: