MobilePage.MasterPageFile 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定主版頁面的檔案名稱。 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 頁面上不支援主版頁面。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應