Returns Boolean value from application settings.

Namespace:  SGP.XUtility
Assembly:  SGP.XUtility (in SGP.XUtility.dll)
Version: 1.2.3019.18718

Syntax

C#
public static bool GetBoolean(
	string name,
	bool defaultValue
)

Parameters

name
Type: System..::.String
Setting name.
defaultValue
Type: System..::.Boolean
A default value.

Return Value

Settings value with name name, whether is not exist, returns defaultValue.

Remarks

Methods returns the value with name name from application settings (AppSettings). If the value does not exist or is not convertible to Boolean, returns defaultValue.

See Also