다음을 통해 공유


ManagementConfiguration.GetSection 메서드

정의

지정된 구성 섹션을 검색합니다.

오버로드

GetSection(String)

지정된 경로에서 구성 섹션을 검색합니다.

GetSection(String, Type)

지정된 섹션 경로에서 구성 섹션을 검색합니다.

GetSection(String, ManagementConfigurationPath, Boolean)

지정된 경로에서 구성 섹션을 검색합니다.

GetSection(String, Type, ManagementConfigurationPath, Boolean)

지정된 경로에서 구성 섹션을 검색합니다.

GetSection(String)

지정된 경로에서 구성 섹션을 검색합니다.

public:
 Microsoft::Web::Administration::ConfigurationSection ^ GetSection(System::String ^ sectionPath);
public Microsoft.Web.Administration.ConfigurationSection GetSection (string sectionPath);
member this.GetSection : string -> Microsoft.Web.Administration.ConfigurationSection
Public Function GetSection (sectionPath As String) As ConfigurationSection

매개 변수

sectionPath
String

섹션 문자열입니다.

반환

ConfigurationSection 지정된 섹션의 내용이 들어 있는 입니다.

예제

다음 예제에서는 메서드를 GetSection(String) 사용하여 "appSettings" 섹션의 내용을 검색합니다.

public class DemoModuleService : ModuleService {

    [ModuleServiceMethod]
    public ArrayList GetSettings() {
        ManagementConfiguration manConfig = this.ManagementUnit.Configuration;
        ConfigurationSection appSetSect = manConfig.GetSection("appSettings");
        ConfigurationElementCollection settings = appSetSect.GetCollection();

}
}

적용 대상

GetSection(String, Type)

지정된 섹션 경로에서 구성 섹션을 검색합니다.

public:
 Microsoft::Web::Administration::ConfigurationSection ^ GetSection(System::String ^ sectionPath, Type ^ sectionType);
public Microsoft.Web.Administration.ConfigurationSection GetSection (string sectionPath, Type sectionType);
member this.GetSection : string * Type -> Microsoft.Web.Administration.ConfigurationSection
Public Function GetSection (sectionPath As String, sectionType As Type) As ConfigurationSection

매개 변수

sectionPath
String

섹션 경로입니다.

sectionType
Type

섹션 Type입니다.

반환

ConfigurationSection 지정된 섹션의 내용이 들어 있는 입니다.

적용 대상

GetSection(String, ManagementConfigurationPath, Boolean)

지정된 경로에서 구성 섹션을 검색합니다.

public:
 Microsoft::Web::Administration::ConfigurationSection ^ GetSection(System::String ^ sectionPath, Microsoft::Web::Management::Server::ManagementConfigurationPath ^ path, bool respectDelegation);
public Microsoft.Web.Administration.ConfigurationSection GetSection (string sectionPath, Microsoft.Web.Management.Server.ManagementConfigurationPath path, bool respectDelegation);
member this.GetSection : string * Microsoft.Web.Management.Server.ManagementConfigurationPath * bool -> Microsoft.Web.Administration.ConfigurationSection
Public Function GetSection (sectionPath As String, path As ManagementConfigurationPath, respectDelegation As Boolean) As ConfigurationSection

매개 변수

sectionPath
String

섹션 경로입니다.

path
ManagementConfigurationPath

ManagementConfigurationPath 관리 구성 경로를 지정하는 입니다.

respectDelegation
Boolean

true 위임을 존중합니다. false 위임을 무시합니다.

반환

ConfigurationSection 지정된 섹션의 내용이 들어 있는 입니다.

적용 대상

GetSection(String, Type, ManagementConfigurationPath, Boolean)

지정된 경로에서 구성 섹션을 검색합니다.

public:
 Microsoft::Web::Administration::ConfigurationSection ^ GetSection(System::String ^ sectionPath, Type ^ sectionType, Microsoft::Web::Management::Server::ManagementConfigurationPath ^ path, bool respectDelegation);
public Microsoft.Web.Administration.ConfigurationSection GetSection (string sectionPath, Type sectionType, Microsoft.Web.Management.Server.ManagementConfigurationPath path, bool respectDelegation);
member this.GetSection : string * Type * Microsoft.Web.Management.Server.ManagementConfigurationPath * bool -> Microsoft.Web.Administration.ConfigurationSection
Public Function GetSection (sectionPath As String, sectionType As Type, path As ManagementConfigurationPath, respectDelegation As Boolean) As ConfigurationSection

매개 변수

sectionPath
String

섹션 경로입니다.

sectionType
Type

섹션 Type입니다.

path
ManagementConfigurationPath

ManagementConfigurationPath 관리 구성 경로를 지정하는 입니다.

respectDelegation
Boolean

true 위임을 존중합니다. false 위임을 무시합니다.

반환

ConfigurationSection 지정된 섹션의 내용이 들어 있는 입니다.

적용 대상