HttpContext.GetConfig(String) Methode

Definitie

Let op

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

Retourneert aangevraagde configuratiegegevens voor de huidige HTTP-aanvraag.

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

Parameters

name
String

De configuratietag waarvoor informatie wordt aangevraagd.

Retouren

De opgegeven ConfigurationSection, null als de sectie niet bestaat of een intern object als de sectie niet toegankelijk is tijdens runtime. (Cast het geretourneerde object naar het juiste configuratietype voordat u dit gebruikt.)

Kenmerken

Opmerkingen

De GetConfig methode is afgeschaft. Gebruik de GetSection methode om configuratiegegevens op te halen voor de huidige HTTP-aanvraag.

Van toepassing op

Zie ook