Settings Members

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS Namespace > Settings Class >

Settings Members

The Settings type exposes the following members.

 

Constructors


Name

Description

Public method

Settings

Constructor for the Settings class that takes an XElement parameter

 

Methods


Name

Description

Protected method

BuildSettings

(Inherited from BaseSettingsElement.)

Public method

GetSetting(String)

Retrieves the value of a setting based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

GetSetting(String, String)

Retrieves a setting value based on the provided SettingId. If the setting is not found, the defaultValue is returned.

(Inherited from BaseSettingsElement.)

Public method

GetSetting<T>(String)

Retrieves a setting value of type T based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

GetSetting<T>(String, T)

Retrieves a setting value of type T from the settings dictionary. If the setting does not exist, returns the default value provided.

(Inherited from BaseSettingsElement.)

Public method

SafeReadAttribute

Safely reads the value of the specified attribute from the XML document.

(Inherited from BaseElement.)

Public method

TryGetSetting(String, String)

Tries to get the value of a setting based on the provided SettingId.

(Inherited from BaseSettingsElement.)

Public method

TryGetSetting<T>(String, T)

Tries to get the setting value for the specified SettingId.

(Inherited from BaseSettingsElement.)

 

Properties


Name

Description

Public property

Settings

Gets the settings dictionary.

(Inherited from BaseSettingsElement.)

 

See Also


Settings Class

BNCS Namespace