AppSettingsExpressionBuilder.GetAppSetting Method (String)
.NET Framework 2.0
Returns a value from the <appSettings> section of the Web.config file.
Namespace: System.Web.Compilation
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public static Object GetAppSetting ( String key )
public static function GetAppSetting ( key : String ) : Object
Not applicable.
Parameters
- key
The key for the value to be retrieved from the configuration file.
Return Value
The Object associated with the key in the <appSettings> section of the Web.config file.This method retrieves the appropriate value from the key/value pairs in the <appSettings> section of the Web.config file. It retrieves the value by getting the AppSettings property with the key as the index. The Object returned is of the type String.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: