Config.GetStringAppSettingConfigValue Method

NSG Library

ConfigGetStringAppSettingConfigValue Method

Get a value from the AppSetting section of the web config.

Namespace:  NSG.Library.Helpers
Assembly:  NSG.Library.Helpers (in NSG.Library.Helpers.dll) Version: 1.0.1.17 (1.0.1.17)
Syntax
public static string GetStringAppSettingConfigValue(
	string configAppKey,
	string defaultValue
)
Public Shared Function GetStringAppSettingConfigValue ( 
	configAppKey As String,
	defaultValue As String
) As String
public:
static String^ GetStringAppSettingConfigValue(
	String^ configAppKey, 
	String^ defaultValue
)
static member GetStringAppSettingConfigValue : 
        configAppKey : string * 
        defaultValue : string -> string 

Parameters

configAppKey
Type: SystemString
AppSetting key value
defaultValue
Type: SystemString
if not found return this value

Return Value

Type: String
string of the value in the appSetting section in the config file.
See Also