HttpContext.GetAppConfig(String) 메서드

정의

주의

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

현재 애플리케이션에 대해 요청된 구성 정보를 반환합니다.

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

매개 변수

name
String

정보가 요청된 애플리케이션 구성 태그입니다.

반환

Object

구성 정보가 들어 있는 개체입니다. 반환된 구성 섹션을 사용하기 전에 적절한 구성 형식으로 캐스팅합니다.

특성

설명

GetAppConfig 메서드는 사용되지 않습니다. 사용 하 여는 GetWebApplicationSection 메서드를 WebConfigurationManager 클래스를 현재 애플리케이션에 대 한 구성 정보를 가져옵니다.

적용 대상

추가 정보