Share via


MobilePage.MasterPageFile 屬性

定義

取得或設定主版頁面的檔案名稱。 ASP.NET Mobile Web Form 頁面不支援主版頁面。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 property System::String ^ MasterPageFile { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public override sealed string MasterPageFile { get; set; }
[<System.ComponentModel.Bindable(false)>]
[<System.ComponentModel.Browsable(false)>]
member this.MasterPageFile : string with get, set
Public Overrides NotOverridable Property MasterPageFile As String

屬性值

null.

屬性

例外狀況

嘗試設定此屬性。 行動通訊頁面不支援主版頁面。

備註

此成員會 Page.MasterPageFile 覆寫以防止主版頁面使用。 這是因為 ASP.NET 行動 Web Form 頁面上不支援主版頁面。

適用於

另請參閱