C# Class Rolcore.Configuration.FileConfigurationSource

Implements IConfigurationSource to provide configuration via the ConfigurationManager. ConfigurationExportProvider
Inheritance: IConfigurationSource
Show file Open project: Rollins/Rolcore

Public Methods

Method Description
ContainsSection ( string name ) : bool

Returns true if the specified section exists.

ContainsSetting ( string key ) : bool

Returns true if the specified setting exists.

GetSection ( string name ) : object

Gets a configuration section with the specified name.

GetSetting ( string key ) : string

Gets the specified setting value.

Method Details

ContainsSection() public method

Returns true if the specified section exists.
public ContainsSection ( string name ) : bool
name string Specifies the key used to identify the section.
return bool

ContainsSetting() public method

Returns true if the specified setting exists.
public ContainsSetting ( string key ) : bool
key string Specifies the key used to identify the setting.
return bool

GetSection() public method

Gets a configuration section with the specified name.
public GetSection ( string name ) : object
name string Specifies the name of the configuration section to return.
return object

GetSetting() public method

Gets the specified setting value.
public GetSetting ( string key ) : string
key string Specifies the key used to identify the setting.
return string