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

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

반환

Object

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

특성

설명

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

적용 대상

추가 정보