HttpContext.GetAppConfig(String) Methode

Definition

Achtung

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

Gibt die angeforderten Konfigurationsinformationen für die aktuelle Anwendung zurück.

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

Parameter

name
String

Das Anwendungskonfigurationstag, für das Informationen angefordert werden.

Gibt zurück

Object

Ein Objekt, das Konfigurationsinformationen enthält. (Wandeln Sie den zurückgegebenen Konfigurationsabschnitt vor der Verwendung in den zutreffenden Konfigurationstyp um.)

Attribute

Hinweise

Die GetAppConfig-Methode ist veraltet. Verwenden Sie die GetWebApplicationSection Methode der WebConfigurationManager Klasse, um Konfigurationsinformationen für die aktuelle Anwendung abzurufen.

Gilt für

Siehe auch