다음을 통해 공유


SPWebApplication.MasterPageReferenceEnabled Property

Gets or sets a Boolean value that specifies whether site administrators can turn on or off dynamic master page referencing for application pages.

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

Syntax

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

value = instance.MasterPageReferenceEnabled

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

Property Value

Type: System.Boolean
Boolean
true if site administrators can turn dynamic master page referencing on or off; otherwise, false.

Exceptions

Exception Condition
SecurityException

The current user is not a farm administrator.

See Also

Reference

SPWebApplication Class

SPWebApplication Members

Microsoft.SharePoint.Administration Namespace