Share via


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.String

    A string containing the name of the template.

See Also

Reference

SPSiteAdministration Class

SPSiteAdministration Members

Microsoft.SharePoint.Administration Namespace