Bearbeiten

Freigeben über


HttpContext.GetAppConfig(String) Method

Definition

Caution

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

Returns requested configuration information for the current application.

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

Parameters

name
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.)

Attributes

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