System.Web.HttpContext.GetConfig Method

Returns requested configuration information for the current HTTP request.

Syntax

[System.Obsolete("see GetSection")]
public object GetConfig (string name)

Parameters

name
The configuration tag for which information is requested.

Returns

The specified System.Configuration.ConfigurationSection, null if the section does not exist, or an internal object if the section is not accessible at run time. (Cast the returned object to the appropriate configuration type before use.)

Remarks

The HttpContext.GetConfig(string) method has been deprecated. Use the HttpContext.GetSection(string) method to get configuration information for the current HTTP request.

Requirements

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