Click or drag to resize

IConfigurationManagerLoadConfigurationT Method

Loads a saved configuration file based on its level.

Namespace: RAYLASE.Marker.Configuration
Assembly: RAYLASE.Marker.Configuration (in RAYLASE.Marker.Configuration.dll) Version: 2.19.0
Syntax
C#
T LoadConfiguration<T>(
	string configurationName,
	ConfigurationLevel configurationLevel,
	JsonSerializerSettings jsonSerializerSettings = null,
	bool appendJsonExtension = true
)

Parameters

configurationName  String
The name of the configuration without extension.
configurationLevel  ConfigurationLevel
The hierarchical level of the configuration file.
jsonSerializerSettings  JsonSerializerSettings  (Optional)
The settings used by the json serializer.
appendJsonExtension  Boolean  (Optional)
If true the file extension ".json" will be appended.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:RAYLASE.Marker.Configuration.IConfigurationManager.LoadConfiguration``1(System.String,RAYLASE.Marker.Configuration.ConfigurationLevel,Newtonsoft.Json.JsonSerializerSettings,System.Boolean)"]

Return Value

T
The configurations.
Remarks
The file will be stored in the application configuration directory as configurationName.json
See Also