HttpContext.GetConfig(String) 메서드

정의

주의

The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202

현재 HTTP 요청에 대해 요청된 구성 정보를 반환합니다.

public:
 System::Object ^ GetConfig(System::String ^ name);
public object GetConfig(string name);
[System.Obsolete("The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202")]
public object GetConfig(string name);
member this.GetConfig : string -> obj
[<System.Obsolete("The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.GetConfig : string -> obj
Public Function GetConfig (name As String) As Object

매개 변수

name
String

정보가 요청되는 구성 태그입니다.

반품

지정된 ConfigurationSection섹션 null 이 없는 경우 또는 런타임에 섹션에 액세스할 수 없는 경우 내부 개체입니다. (사용하기 전에 반환된 개체를 적절한 구성 형식으로 캐스팅합니다.)

특성

설명

메서드는 GetConfig 더 이상 사용되지 않습니다. 메서드를 GetSection 사용하여 현재 HTTP 요청에 대한 구성 정보를 가져옵니다.

적용 대상

추가 정보