Config.GetBoolAppSettingConfigValue Method

NSG Library

ConfigGetBoolAppSettingConfigValue 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 bool GetBoolAppSettingConfigValue(
	string configAppKey,
	bool defaultValue
)
Public Shared Function GetBoolAppSettingConfigValue ( 
	configAppKey As String,
	defaultValue As Boolean
) As Boolean
public:
static bool GetBoolAppSettingConfigValue(
	String^ configAppKey, 
	bool defaultValue
)
static member GetBoolAppSettingConfigValue : 
        configAppKey : string * 
        defaultValue : bool -> bool 

Parameters

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

Return Value

Type: Boolean
boolean value in the appSetting section in the config file.
See Also