Page.MasterPageFile プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As Page Dim value As String value = instance.MasterPageFile instance.MasterPageFile = value
/** @property */ public String get_MasterPageFile () /** @property */ public void set_MasterPageFile (String value)
マスタ ページのファイル名。


MasterPageFile プロパティは、対象のページに関連付けられたマスタ ページのファイル名です。MasterPageFile プロパティは、PreInit イベントのみに設定できます。PreInit イベントの後で MasterPageFile プロパティを設定しようとすると InvalidOperationException 例外がスローされます。
MasterPageFile プロパティが設定されたページはコンテンツ ページです。そのため、このようなページは Content コントロールという最上位のコントロールだけを保持できます。

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPage.MasterPageFile プロパティを検索する場合は、下記のリンクをクリックしてください。

- Page.MasterPageFile プロパティのページへのリンク