Compartir a través de


Site.AllowRevertFromTemplate Property

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property AllowRevertFromTemplate As Boolean
    Get
    Set
'Usage
Dim instance As Site
Dim value As Boolean

value = instance.AllowRevertFromTemplate

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

Property Value

Type: System.Boolean
Returns Booleantrue if this site collection can be reverted to its base template otherwise returns false.

Exceptions

Exception Condition
[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.

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

Site Class

Site Members

Microsoft.SharePoint.Client Namespace