HttpContext.GetConfig(String) Method

Definition

Warning

This API is now obsolete.

Returns requested configuration information for the current HTTP request.

public:
 System::Object ^ GetConfig(System::String ^ name);
[System.Obsolete("The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. https://go.microsoft.com/fwlink/?linkid=14202")]
public object GetConfig (string name);
member this.GetConfig : string -> obj
Public Function GetConfig (name As String) As Object

Parameters

name
String

The configuration tag for which information is requested.

Returns

The specified 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.)

Attributes

Remarks

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

Applies to

See also