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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- Page.MasterPageFile プロパティのページへのリンク