Class ClientConfigurationWithAppSettingsExtensions
Summary description for ClientConfigurationWithAppSettingsExtensions.
Inheritance
System.Object
ClientConfigurationWithAppSettingsExtensions
Namespace: ImageVault.Common.Lib.Configuration
Assembly: ImageVault.Common.dll
Syntax
public static class ClientConfigurationWithAppSettingsExtensions : Object
Methods
GetAppSettingAsBool(ConfigurationSectionWithAppSettingsBase, String)
Gets an appsettings as a boolean value
Declaration
public static bool GetAppSettingAsBool(this ConfigurationSectionWithAppSettingsBase config, string key)
Parameters
Type | Name | Description |
---|---|---|
ConfigurationSectionWithAppSettingsBase | config | The ConfigurationSectionWithAppSettingsBase to use |
System.String | key | The key of the appsettings value to get |
Returns
Type | Description |
---|---|
System.Boolean | The value as a booelan. False is anything that isn't true. True is (true, yes, on, 1 (ignoring case)). |