SPSiteAdministration.ApplyWebTemplate Method
Applies a template to the top-level site in the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub ApplyWebTemplate ( _
strWebTemplate As String _
)
'Usage
Dim instance As SPSiteAdministration
Dim strWebTemplate As String
instance.ApplyWebTemplate(strWebTemplate)
public void ApplyWebTemplate(
string strWebTemplate
)
Parameters
strWebTemplate
Type: System.StringA string containing the name of the template.