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

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

Attributs

Remarques

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

S’applique à

Voir aussi