ConfigHelperGetSettingAsBoolean Method |
获取一项配置,若未配置则返回默认值
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public static bool GetSettingAsBoolean(
string key,
bool defaultValue = false
)
Public Shared Function GetSettingAsBoolean (
key As String,
Optional defaultValue As Boolean = false
) As Boolean
public:
static bool GetSettingAsBoolean(
String^ key,
bool defaultValue = false
)
static member GetSettingAsBoolean :
key : string *
?defaultValue : bool
(* Defaults:
let _defaultValue = defaultArg defaultValue false
*)
-> bool
Parameters
- key
- Type: SystemString
[Missing <param name="key"/> documentation for "M:Adf.ConfigHelper.GetSettingAsBoolean(System.String,System.Boolean)"]
- defaultValue (Optional)
- Type: SystemBoolean
[Missing <param name="defaultValue"/> documentation for "M:Adf.ConfigHelper.GetSettingAsBoolean(System.String,System.Boolean)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Adf.ConfigHelper.GetSettingAsBoolean(System.String,System.Boolean)"]
See Also