HttpContext.GetSection(String) 메서드

정의

현재 애플리케이션의 기본 구성에 대해 지정된 구성 섹션을 가져옵니다.

public:
 System::Object ^ GetSection(System::String ^ sectionName);
public object GetSection (string sectionName);
member this.GetSection : string -> obj
Public Function GetSection (sectionName As String) As Object

매개 변수

sectionName
String

구성 섹션 경로(XPath 형식)와 구성 요소 이름입니다.

반환

Object

섹션이 없는 경우 지정된 ConfigurationSectionnull이고, 런타임에 액세스할 수 없는 섹션인 경우 내부 개체입니다.

적용 대상

추가 정보