Share via


SPWebApplication.AllowDesigner property

Gets or sets a Boolean value that specifies whether SharePoint Designer can be used to edit Web sites within the Web application.

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

Syntax

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

value = instance.AllowDesigner

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

Property value

Type: System.Boolean
Boolean
true if SharePoint Designer can be used to modify Web sites; otherwise, false. The default is true.

Exceptions

Exception Condition
SecurityException

The current user is not a farm administrator and therefore cannot set this property.

Remarks

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

The AllowDesignerForCurrentUser property indicates whether the current user can use SharePoint Designer to modify a specific Web site.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace