 | ConfigGetAppKey Method |
Gets the application key.
Namespace:
Koden.Utils
Assembly:
Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntaxpublic static string GetAppKey(
string key,
bool toLower = false,
string defReturn = ""
)
Public Shared Function GetAppKey (
key As String,
Optional toLower As Boolean = false,
Optional defReturn As String = ""
) As String
public:
static String^ GetAppKey(
String^ key,
bool toLower = false,
String^ defReturn = L""
)
static member GetAppKey :
key : string *
?toLower : bool *
?defReturn : string
(* Defaults:
let _toLower = defaultArg toLower false
let _defReturn = defaultArg defReturn ""
*)
-> string
Parameters
- key
- Type: SystemString
The key. - toLower (Optional)
- Type: SystemBoolean
if set to true [to lower]. - defReturn (Optional)
- Type: SystemString
The default value to return if key doesn't exist or is empty.
Return Value
Type:
StringString from AppKey in *.config file *or* default
See Also