PagesSection.MasterPageFile 속성

정의

애플리케이션의 마스터 페이지에 대한 참조를 가져오거나 설정합니다.

public:
 property System::String ^ MasterPageFile { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("masterPageFile", DefaultValue="")]
public string MasterPageFile { get; set; }
[<System.Configuration.ConfigurationProperty("masterPageFile", DefaultValue="")>]
member this.MasterPageFile : string with get, set
Public Property MasterPageFile As String

속성 값

애플리케이션의 마스터 페이지에 대한 참조입니다.

특성

예제

다음 코드 예제에서는 MasterPageFile 속성을 사용하는 방법을 보여 줍니다.

// Get the current MasterPageFile property value.
Console.WriteLine(
    "Current MasterPageFile value: '{0}'",
    pagesSection.MasterPageFile);

// Set the MasterPageFile property to "MyMasterPage.ascx".
pagesSection.MasterPageFile = "MyMasterPage.ascx";
' Get the current MasterPageFile property value.
Console.WriteLine( _
    "Current MasterPageFile value: '{0}'", _
    pagesSection.MasterPageFile)

' Set the MasterPageFile property to "MyMasterPage.ascx".
pagesSection.MasterPageFile = "MyMasterPage.ascx"

설명

이 속성의 값은 상대 경로 또는 절대 경로 수 있습니다.

적용 대상

추가 정보