HttpContext.GetAppConfig(String) Methode

Definitie

Let op

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

Retourneert aangevraagde configuratiegegevens voor de huidige toepassing.

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

De toepassingsconfiguratietag waarvoor informatie wordt aangevraagd.

Retouren

Een object met configuratiegegevens. (Cast de geretourneerde configuratiesectie naar het juiste configuratietype voordat u deze gebruikt.)

Kenmerken

Opmerkingen

De GetAppConfig methode is afgeschaft. Gebruik de GetWebApplicationSection methode van de WebConfigurationManager klasse om configuratiegegevens voor de huidige toepassing op te halen.

Van toepassing op

Zie ook