C# Class ABB.Swum.Utilities.SwumConfiguration

Provides access to the settings specified in the SWUM configuration file.
Show file Open project: abb-iss/Swum.NET

Public Methods

Method Description
GetFileSetting ( string key ) : string

Gets the value of the specified configuration setting, which is assumed to be a file path. If the path is relative, it is expanded to a full path, using the directory of the configuration file.

GetSetting ( string key ) : string

Gets the value of the specified configuration setting.

Private Methods

Method Description
SwumConfiguration ( ) : System

Reads the configuration file associated with the current assembly.

Method Details

GetFileSetting() public static method

Gets the value of the specified configuration setting, which is assumed to be a file path. If the path is relative, it is expanded to a full path, using the directory of the configuration file.
public static GetFileSetting ( string key ) : string
key string The name of the setting to retrieve.
return string

GetSetting() public static method

Gets the value of the specified configuration setting.
public static GetSetting ( string key ) : string
key string The name of the setting to retrieve.
return string