Web.ApplyWebTemplate - Méthode
Applies the specified site definition or site template to the website that has no template applied to it.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Sub ApplyWebTemplate ( _
webTemplate As String _
)
'Utilisation
Dim instance As Web
Dim webTemplate As String
instance.ApplyWebTemplate(webTemplate)
public void ApplyWebTemplate(
string webTemplate
)
Paramètres
webTemplate
Type : System.StringThe name of the site definition or the file name of the site template to be applied.
Remarques
Avertissement
Be careful about calling this method within a website provisioning callback function. If you call this method inside a provisioning callback that is defined within the same site definition configuration that is being applied, you can cause an infinite loop. Instead, create two similar site definition configurations within the site definition, one that is visible and one that is hidden. The visible configuration can then contain a provisioning assembly callback that applies the hidden configuration to websites.