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