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


Свойство Site.AllowRevertFromTemplate

Gets or sets a value that specifies whether this site collection can be reverted to its base 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 AllowRevertFromTemplate As Boolean
    Get
    Set
'Применение
Dim instance As Site
Dim value As Boolean

value = instance.AllowRevertFromTemplate

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

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

Тип: System.Boolean
Returns Booleantrue if this site collection can be reverted to its base template; otherwise false

Исключения

Исключение Условие
[System.UnauthorizedAccessException]

The current user has insufficient permissions. Either the user is not a site collection administrator, or the setting is disabled at the Web application level. Error code: -2147024891.

Замечания

See Web.AllowRevertFromTemplateForCurrentUser, which is the method for determining the behavior for the current user. The default, if not disabled on the Web application, is false.

См. также

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

Site класс

Элементы Site

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