HttpContext.GetAppConfig(String) Metoda

Definice

Upozornění

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

Vrátí požadované informace o konfiguraci aktuální aplikace.

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

Parametry

name
String

Značka konfigurace aplikace, pro kterou se požaduje informace.

Návraty

Object

Objekt obsahující informace o konfiguraci. (Před použitím přetypujte vrácenou část konfigurace na příslušný typ konfigurace.)

Atributy

Poznámky

Metoda GetAppConfig je zastaralá. GetWebApplicationSection Použijte metodu WebConfigurationManager třídy k získání informací o konfiguraci pro aktuální aplikaci.

Platí pro

Viz také