Share via


Site.AllowMasterPageEditing property

Gets or sets a value that specifies whether master page editing is allowed on this site collection.

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

Syntax

'Declaration
Public Property AllowMasterPageEditing As Boolean
    Get
    Set
'Usage
Dim instance As Site
Dim value As Boolean

value = instance.AllowMasterPageEditing

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

Property value

Type: System.Boolean
Returns Booleantrue if the value that specifies whether master page editing is allowed on this site collection or 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.AllowMasterPageEditingForCurrentUser, 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