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

要求資訊的應用程式組態標記。

傳回

Object

包含組態資訊的物件 (會將傳回的組態區段轉換成適當的組態類型再使用)。

屬性

備註

GetAppConfig 方法已被取代。 GetWebApplicationSection使用 類別的 WebConfigurationManager 方法來取得目前應用程式的組態資訊。

適用於

另請參閱