次の方法で共有


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)

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