SectionInformation.InheritInChildApplications 속성

정의

연결된 구성 섹션에 지정된 설정이 관련 애플리케이션의 하위 디렉터리에 있는 애플리케이션에서 상속되는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property bool InheritInChildApplications { bool get(); void set(bool value); };
public bool InheritInChildApplications { get; set; }
member this.InheritInChildApplications : bool with get, set
Public Property InheritInChildApplications As Boolean

속성 값

하위 애플리케이션이 이 ConfigurationSection 개체에 지정된 설정을 상속하면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 예제에서는 개체의 InheritInChildApplicationsConfigurationSection 값을 가져오는 방법을 보여줍니다.

static public void GetInheritInChildApps()
{
    SectionInformation sInfo =
        GetSectionInformation();

    bool inheritInChildApps =
        sInfo.InheritInChildApplications;
    Console.WriteLine("Inherit in child apps: {0}",
        inheritInChildApps.ToString());
}
Public Shared Sub GetInheritInChildApps() 

    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim inheritInChildApps As Boolean = _
    sInfo.InheritInChildApplications
    Console.WriteLine("Inherit in child apps: {0}", _
    inheritInChildApps.ToString())

End Sub

설명

속성은 InheritInChildApplicationsinheritInChildApplications 구성 파일에 있는 location 요소의 특성을 나타냅니다.

설정할 InheritInChildApplicationsfalse 설정이 관련 된 특정 위치 (예: 웹 사이트의 루트 디렉터리)에 하위 디렉터리에 존재 하는 애플리케이션에서 상속 되지 않도록 합니다.

다음 예제에서는 웹 사이트의 루트에 대 한 위치 요소에 정의 된 설정은 자식 애플리케이션에서 상속 되지 해야를 지정 하는 구성 파일에이 특성을 사용 하는 방법을 보여 줍니다.

<location path="." inheritInChildApplications="false">

속성은 InheritInChildApplications 위치별 구성 설정에만 적용됩니다.

적용 대상