HttpContext.GetAppConfig(String) Method

Definition

Warning

This API is now obsolete.

Retourne les informations de configuration demandées pour l'application actuelle.Returns requested configuration information for the current application.

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
Public Shared Function GetAppConfig (name As String) As Object

Parameters

name
String

Balise de configuration de l'application pour laquelle des informations sont demandées.The application configuration tag for which information is requested.

Returns

Object

Objet contenant des informations de configuration.An object containing configuration information. (Effectuez un transtypage de la section de configuration retournée au type de configuration approprié avant utilisation).(Cast the returned configuration section to the appropriate configuration type before use.)

Attributes

Remarks

La méthode GetAppConfig est déconseillée.The GetAppConfig method has been deprecated. Utilisez la méthode GetWebApplicationSection de la classe WebConfigurationManager pour obtenir des informations de configuration pour l’application actuelle.Use the GetWebApplicationSection method of the WebConfigurationManager class to get configuration information for the current application.

Applies to

See also