HttpContext.GetAppConfig(String) メソッド

定義

注意事項

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

現在のアプリケーションに対して要求された構成情報を返します。

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

情報が要求されたアプリケーションの構成タグ。

戻り値

構成情報を格納するオブジェクト。 (返された構成セクションは、適切な構成型にキャストしてから使用してください。)

属性

注釈

GetAppConfig メソッドの使用は非推奨とされました。 クラスの GetWebApplicationSection メソッドを使用して、 WebConfigurationManager 現在のアプリケーションの構成情報を取得します。

適用対象

こちらもご覧ください