Configuration ProviderLoadFromAnySupportedFormatFile Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Loads the contents of the supplied file name without format extension trying to match any of the supported format extensions. When match is found the file is loaded via an appropriate configuration provider

Namespace: NFX.Environment
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static Configuration ProviderLoadFromAnySupportedFormatFile(
	string fileName
)

Return Value

Type: Configuration
Examples

Given "c:\conf\users" as an input: if "c:\conf\users.xml" exists then it will be opened as XMLConfiguration if "c:\conf\users.laconf" exists then it will be opened as LaconicConfiguration if "c:\conf\users.json" exists then it will be opened as JSONConfiguration and so on... for the rest of supported formats
See Also