HttpContext.GetAppConfig(String) Metod

Definition

Varning

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

Returnerar begärd konfigurationsinformation för det aktuella programmet.

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

Parametrar

name
String

Programkonfigurationstaggen för vilken information begärs.

Returer

Ett objekt som innehåller konfigurationsinformation. (Omvandla det returnerade konfigurationsavsnittet till lämplig konfigurationstyp före användning.)

Attribut

Kommentarer

Metoden GetAppConfig är inaktuell. GetWebApplicationSection Använd -metoden för WebConfigurationManager klassen för att hämta konfigurationsinformation för det aktuella programmet.

Gäller för

Se även