Share via


SPWebApplication.AllowRevertFromTemplate property

Gets or sets a Boolean value that specifies whether customized sites can be reverted to their base templates.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property AllowRevertFromTemplate As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.AllowRevertFromTemplate

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

Property value

Type: System.Boolean
Boolean
true if sites can be reverted to their base templates; otherwise, false. The default value is true.

Exceptions

Exception Condition
SecurityException

The current user is not a farm administrator.

Remarks

This property is not meant to serve as a security feature, but as a convenience for administration of the Web application.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace