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


Свойство Web.SaveSiteAsTemplateEnabled

Gets or sets a Boolean value that specifies whether the Web site can be saved as a site template.

Пространство имен:  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 Property SaveSiteAsTemplateEnabled As Boolean
    Get
    Set
'Применение
Dim instance As Web
Dim value As Boolean

value = instance.SaveSiteAsTemplateEnabled

instance.SaveSiteAsTemplateEnabled = value
public bool SaveSiteAsTemplateEnabled { get; set; }

Значение свойства

Тип: System.Boolean

Замечания

Features that create content which is not compatible with the save site as template feature should set this value to true to stop users of this site from generating invalid templates. A feature should never set this value to false during Feature Deactivation or at any other time since other features might have created content that is not supported and set this value to true. Setting this value to false, if it was true, will result in a template that is not supported.

См. также

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

Web класс

Элементы Web

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