IConfigurationRoot.AddJsonFile Method
Adds the content of a JSON file.
Remarks
The file must be UTF-8 and hold a JSON object.
Syntax
Unit: Bcl.Configuration
function IConfigurationRoot.AddJsonFile(const AFileName: string; AOptional: Boolean = False): IConfigurationRoot; virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | AFileName | string | The file. A relative name is resolved against the directory of the executable, not the current directory. |
| AOptional | Boolean | Optional: Default value is False When True, a file that does not exist is skipped. A file that exists and is malformed is always an error. |