Partilhar via


SP.Site.allowRevertFromTemplate Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets a value that specifies whether this site collection can be reverted to its base template.

var value = SP.Site.get_allowRevertFromTemplate(); 
SP.Site.set_allowRevertFromTemplate(value);

Property Value

Type: Boolean

Specifies whether this site collection can be reverted to its base template. If true, this site collection can be reverted to its base template; otherwise, this site collection cannot be reverted to its base template.

Applies To

SP.Site Class

Exceptions

  • 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.

Remarks

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.

See Also

Reference

SP.Site Methods

SP.Site Properties

SP Namespace