System.Web.HttpContext.GetAppConfig Method

Returns requested configuration information for the current application.

Syntax

[System.Obsolete("use WebConfigurationManager.GetWebApplicationSection")]
public static object GetAppConfig (string name)

Parameters

name
The application configuration tag for which information is requested.

Returns

An object containing configuration information. (Cast the returned configuration section to the appropriate configuration type before use.)

Remarks

The HttpContext.GetAppConfig(string) method has been deprecated. Use the System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection(string) method of the System.Web.Configuration.WebConfigurationManager class to get configuration information for the current application.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0