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