HttpContext.GetConfig(String) Méthode

Définition

Attention

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

Retourne les informations de configuration demandées pour la requête HTTP actuelle.

public:
 System::Object ^ GetConfig(System::String ^ name);
public object GetConfig (string name);
[System.Obsolete("The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202")]
public object GetConfig (string name);
member this.GetConfig : string -> obj
[<System.Obsolete("The recommended alternative is System.Web.HttpContext.GetSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.GetConfig : string -> obj
Public Function GetConfig (name As String) As Object

Paramètres

name
String

Balise de configuration pour laquelle les informations sont demandées.

Retours

Object

ConfigurationSection spécifié, null si la section n'existe pas ou un objet interne si la section n'est pas accessible au moment de l'exécution. (Effectuez un transtypage de l'objet retourné au type de configuration approprié avant utilisation).

Attributs

Remarques

La méthode GetConfig est déconseillée. Utilisez la GetSection méthode pour obtenir des informations de configuration pour la requête HTTP actuelle.

S’applique à

Voir aussi