HttpContext.GetAppConfig(String) HttpContext.GetAppConfig(String) HttpContext.GetAppConfig(String) HttpContext.GetAppConfig(String) Method

Definition

Warning

This API is now obsolete.

Returns requested configuration information for the current application.

public:
 static System::Object ^ GetAppConfig(System::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
Public Shared Function GetAppConfig (name As String) As Object

Parameters

name
String String String String

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 GetAppConfig method has been deprecated. Use the GetWebApplicationSection method of the WebConfigurationManager class to get configuration information for the current application.

Applies to

See also