ConfigurationSettings.AppSettings 属性

定义

注意

This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings

注意

ConfigurationSettings.AppSettings has been deprecated. Use System.Configuration.ConfigurationManager.AppSettings instead.

获取配置文件应用程序设置的只读集合。

public:
 static property System::Collections::Specialized::NameValueCollection ^ AppSettings { System::Collections::Specialized::NameValueCollection ^ 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.")]
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")>]
static member AppSettings : System.Collections.Specialized.NameValueCollection
[<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
Public Shared ReadOnly Property AppSettings As NameValueCollection

属性值

配置文件中应用程序设置的只读集合。

属性

注解

appSettings配置文件的 section 元素包含一系列名称/值对,应用程序可将这些名称/值对用于任何目的。

此方法已过时,并且为了向后兼容而保留。 请改用 ConfigurationManager.GetSection(String) 方法。

注意

ConfigurationSettings 类仅提供向后兼容性。 应改为使用 ConfigurationManager 类或 WebConfigurationManager 类。

适用于

另请参阅