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