다음을 통해 공유


Configuration.GetEffectiveSectionGroup 메서드

정의

구성 파일에 대한 유효 섹션 그룹을 가져옵니다.

public:
 Microsoft::Web::Administration::SectionGroup ^ GetEffectiveSectionGroup();
public Microsoft.Web.Administration.SectionGroup GetEffectiveSectionGroup ();
member this.GetEffectiveSectionGroup : unit -> Microsoft.Web.Administration.SectionGroup
Public Function GetEffectiveSectionGroup () As SectionGroup

반환

SectionGroup 섹션 그룹 및 섹션을 포함하는 개체입니다.

예제

다음 예제에서는 개체에 Configuration 대한 섹션 그룹을 가져오고 섹션 그룹 내에서 각 섹션 정의의 이름을 표시합니다.

public void GetGetEffectiveSectionGroup(ServerManager manager)
{
    Configuration config = manager.GetAdministrationConfiguration();
    SectionGroup sectionGroup = config.GetEffectiveSectionGroup();
    Console.WriteLine("There are " + sectionGroup.Sections.Count.ToString() +
        " Sections in the section group: " + sectionGroup.SectionGroups.ToString());
    foreach (SectionDefinition def in sectionGroup.Sections)
    {
        Console.WriteLine("\t{0}", def.Name);
    }
}

설명

개체는 SectionGroup 섹션 그룹 및 섹션의 읽기 전용 병합입니다. 여기에는 루트 섹션 그룹이 포함됩니다.

적용 대상

추가 정보