[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.EnvironmentAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static Configuration ProviderLoadFromAnySupportedFormatFile(
string fileName
)
public static Configuration ProviderLoadFromAnySupportedFormatFile(
string fileName
)
Public Shared Function ProviderLoadFromAnySupportedFormatFile (
fileName As String
) As Configuration
Public Shared Function ProviderLoadFromAnySupportedFormatFile (
fileName As String
) As Configuration
public:
static Configuration^ ProviderLoadFromAnySupportedFormatFile(
String^ fileName
)
public:
static Configuration^ ProviderLoadFromAnySupportedFormatFile(
String^ fileName
)
static member ProviderLoadFromAnySupportedFormatFile :
fileName : string -> Configuration
static member ProviderLoadFromAnySupportedFormatFile :
fileName : string -> Configuration
Return Value
Type:
Configuration
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