Interface IReadOnlyConfiguration
Inherited Members
Namespace: Experior.Interfaces.ApplicationSettings
Assembly: Experior.Interfaces.dll
Syntax
public interface IReadOnlyConfiguration : IConfigurationRepository
Methods
GetValue<T>(String, T)
Retrieves the value associated with the specified key. If the key is not found, returns the default value that you provide.
Declaration
T GetValue<T>(string key, T defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the value to retrieve. This string is case-sensitive. |
T | defaultValue | The value to return if |
Returns
Type | Description |
---|---|
T | The value associated with |
Type Parameters
Name | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|