AppConfigGetValueT Method |
Returns the value of a property from the configuration.B
Namespace: Oracle.Cloud.Mobile.MobileBackendAssembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic T GetValue<T>(
string name,
T defaultValue = null
)
Public Function GetValue(Of T) (
name As String,
Optional defaultValue As T = Nothing
) As T
public:
generic<typename T>
T GetValue(
String^ name,
T defaultValue = nullptr
)
member GetValue :
name : string *
?defaultValue : 'T
(* Defaults:
let _defaultValue = defaultArg defaultValue null
*)
-> 'T
Parameters
- name
- Type: SystemString
The name of the application configuration property. - defaultValue (Optional)
- Type: T
The default value to return in case the property does not exist in the configuration.
Type Parameters
- T
- The type of the property value. Supported types are string, int, double and bool.
Return Value
Type:
TThe value of the property.
See Also