HttpContext.GetAppConfig(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The recommended alternative is System.Web.Configuration.WebConfigurationManager.GetWebApplicationSection in System.Web.dll. http://go.microsoft.com/fwlink/?linkid=14202
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
[<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
- name
- String
The application configuration tag for which information is requested.
An object containing configuration information. (Cast the returned configuration section to the appropriate configuration type before use.)
- Attributes
The GetAppConfig method has been deprecated. Use the GetWebApplicationSection method of the WebConfigurationManager class to get configuration information for the current application.
Produit | Versions (Obsolète) |
---|---|
.NET Framework | 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :