Свойство SPSite.AllowRevertFromTemplate
Used to assign or retrieve the Site Collection property that allows reverting from a template.
Пространство имен: Microsoft.SharePoint
Сборка: Microsoft.SharePoint (в Microsoft.SharePoint.dll)
Синтаксис
'Декларация
Public Property AllowRevertFromTemplate As Boolean
Get
Set
'Применение
Dim instance As SPSite
Dim value As Boolean
value = instance.AllowRevertFromTemplate
instance.AllowRevertFromTemplate = value
public bool AllowRevertFromTemplate { get; set; }
Значение свойства
Тип: System.Boolean
A Boolean value depending on what the behavior should be for the current user. The default value is false if the property is not disabled on the web application.
Замечания
Предупреждение
A UnauthorizedAccessException is thrown when attempting to set the property if either the user is not a Site Collection administrator or the setting is disabled at the web application level.