 | BasicAppSettingsGetValueT Method |
Returns exactly one value for a key. If there is no value for the
key, defaultValue is returned.
Wildcards of the form %Name% are replaced recursively if possible;
An attempt is made to cast the determined string value to the return type T.
Namespace: NetEti.ApplicationEnvironmentAssembly: NetEti.BasicAppSettings (in NetEti.BasicAppSettings.dll) Version: 1.0.0+fc721cf1d38e1de155fd33971356662ac9c21f21
Syntaxpublic T GetValue<T>(
string key,
T defaultValue
)
Public Function GetValue(Of T) (
key As String,
defaultValue As T
) As T
public:
generic<type name T>
virtual T GetValue(
String^ key,
T defaultValue
) sealed
abstract GetValue :
key : string *
defaultValue : 'T -> 'T
override GetValue :
key : string *
defaultValue : 'T -> 'T
Parameters
- key String
- The access key (string)
- defaultValue T
- The default result of type T
Type parameters
- T
- The desired return type
Return value
TValue cast to the key in the return type
Implemented
IGetValueGetValueT(String, T)
Exceptions
See also