Partager via


Site.GetWebTemplates - Méthode

Returns the collection of site definitions that are available for creating websites within the site collection.

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 Function GetWebTemplates ( _
    LCID As UInteger, _
    overrideCompatLevel As Integer _
) As WebTemplateCollection
'Utilisation
Dim instance As Site
Dim LCID As UInteger
Dim overrideCompatLevel As Integer
Dim returnValue As WebTemplateCollection

returnValue = instance.GetWebTemplates(LCID, _
    overrideCompatLevel)
public WebTemplateCollection GetWebTemplates(
    uint LCID,
    int overrideCompatLevel
)

Paramètres

  • LCID
    Type : System.UInt32

    A 32-bit unsigned integer that specifies the language of the site definitions that are returned from the site collection.

  • overrideCompatLevel
    Type : System.Int32

    Specifies the compatibility level of the site to return from the site collection. If this value is 0, the compatibility level of the site is used.

Valeur renvoyée

Type : Microsoft.SharePoint.Client.WebTemplateCollection
A WebTemplateCollection object that represents the site definitions.

Remarques

The method provided here mainly for the case when creating new Site compatibility mode.

Voir aussi

Référence

Site classe

Site - Membres

Microsoft.SharePoint.Client - Espace de noms