Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebConfigurationManager::AppSettings Property

 

Gets the Web site's application settings.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public:
property NameValueCollection^ AppSettings {
	static NameValueCollection^ get();
}

Property Value

Type: System.Collections.Specialized::NameValueCollection^

A NameValueCollection object that contains the AppSettingsSection object for the current Web application's default configuration.

Exception Condition
ConfigurationErrorsException

A valid NameValueCollection object could not be retrieved with the application settings data.

An AppSettingsSection object contains the configuration file's <appSettings> section.

The following example shows how to access configuration information with the AppSettings method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: