Method Parse
| Improve this Doc View SourceParse(String, out EnvValidationResult)
Start the parsing to extract the key-value pair from a data source.
Declaration
IEnvironmentVariablesProvider Parse(string dataSource, out EnvValidationResult result)
Parameters
Type | Name | Description |
---|---|---|
String | dataSource | The data source to parsing. |
EnvValidationResult | result | The result contains the errors found by the parser. |
Returns
Type | Description |
---|---|
IEnvironmentVariablesProvider | An instance representing the provider of environment variables. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ParserException | If the parser encounters one or more errors. This exception is not thrown if the IgnoreParserException() method is invoked. |
Parse(String)
Start the parsing to extract the key-value pair from a data source.
Declaration
IEnvironmentVariablesProvider Parse(string dataSource)
Parameters
Type | Name | Description |
---|---|---|
String | dataSource | The data source to parsing. |
Returns
Type | Description |
---|---|
IEnvironmentVariablesProvider | An instance representing the provider of environment variables. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ParserException | If the parser encounters one or more errors. This exception is not thrown if the IgnoreParserException() method is invoked. |