SPWebApplication.AllowMasterPageEditing Property

Gets or sets a Boolean value that specifies whether users are allowed to edit master pages.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

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

value = instance.AllowMasterPageEditing

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

Property Value

Type: System.Boolean
Boolean
true if users can edit master pages; 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