Share via


SPWebApplication.MasterPageReferenceEnabled property

取得或設定 Boolean 值,指定網站管理員是否可以開啟或關閉動態主版頁面參照的應用程式頁面。

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

Syntax

'宣告
Public Property MasterPageReferenceEnabled As Boolean
    Get
    Set
'用途
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網站管理員可以開啟動態主版頁面參照開啟或關閉 ; 如果否則,請false。

Exceptions

Exception Condition
SecurityException

目前的使用者不是伺服器陣列管理員。

請參閱

參照

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace