Поделиться через


Метод Site.GetWebTemplates

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

Пространство имен:  Microsoft.SharePoint.Client
Сборки:   Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)

Синтаксис

'Декларация
Public Function GetWebTemplates ( _
    LCID As UInteger, _
    overrideCompatLevel As Integer _
) As WebTemplateCollection
'Применение
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
)

Параметры

  • LCID
    Тип: System.UInt32

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

  • overrideCompatLevel
    Тип: 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.

Возвращаемое значение

Тип: Microsoft.SharePoint.Client.WebTemplateCollection
A WebTemplateCollection object that represents the site definitions.

Замечания

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

См. также

Справочные материалы

Site класс

Элементы Site

Пространство имен Microsoft.SharePoint.Client