 | AppEnvReaderGetValueT 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.AppEnvReader (in NetEti.AppEnvReader.dll) Version: 1.0.0+903a007d8850bcbaf700b4fedc513f6c16da77d4
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