ConfigurationSettings.AppSettings 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.
警告
This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings
會從設定檔取得一個只讀的應用程式設定集合。
public:
static property System::Collections::Specialized::NameValueCollection ^ AppSettings { System::Collections::Specialized::NameValueCollection ^ get(); };
[System.Obsolete("ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.")]
public static System.Collections.Specialized.NameValueCollection AppSettings { get; }
public static System.Collections.Specialized.NameValueCollection AppSettings { get; }
[System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")]
public static System.Collections.Specialized.NameValueCollection AppSettings { get; }
[<System.Obsolete("ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.")>]
static member AppSettings : System.Collections.Specialized.NameValueCollection
static member AppSettings : System.Collections.Specialized.NameValueCollection
[<System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings")>]
static member AppSettings : System.Collections.Specialized.NameValueCollection
Public Shared ReadOnly Property AppSettings As NameValueCollection
屬性值
這是從設定檔中只能讀取的應用程式設定集合。
- 屬性
備註
appSettings設定檔的區段元素包含一系列名稱/值對,您的應用程式可用於任何用途。
此方法已過時,並保留以維持向下相容性。 請用這個 ConfigurationManager.GetSection(String) 方法。
Note
該 ConfigurationSettings 類別僅提供向下相容性。 還是用職業 ConfigurationManager 或 WebConfigurationManager 職業吧。