Gets a setting whose value is Boolean.

Namespace:  PostSharp
Assembly:  PostSharp.Core (in PostSharp.Core.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function GetSettingBoolean ( _
	key As String, _
	defaultValue As Boolean _
) As Boolean
C#
public static bool GetSettingBoolean(
	string key,
	bool defaultValue
)
Visual C++
public:
static bool GetSettingBoolean(
	String^ key, 
	bool defaultValue
)

Parameters

key
Type: System..::.String
Setting name.
defaultValue
Type: System..::.Boolean
Default value.

Return Value

The setting value, or defaultValue if the setting is not defined.

See Also