Click or drag to resize

YConfigurationProviderTGetConfigurationU Method

Get the configuration value of the given configuration key.

Namespace: Upsilon.Common.Library
Assembly: Upsilon.Common.Library (in Upsilon.Common.Library.dll) Version: 2.2.2+14985a67b419f90e14e6b1bde61d18cf6cf12b27
Syntax
C#
public U GetConfiguration<U>(
	T configurationKey,
	bool loadConfigFile = false
)

Parameters

configurationKey  T
The configuration key.
loadConfigFile  Boolean  (Optional)
Specify to reload the config file before (more accurate but uses more disk). By default it is false.

Type Parameters

U
The type of the configuration value.

Return Value

U
The configuration value or the default value of U if the given configurationKey is missing.
See Also