Search Results for

    Show / Hide Table of Contents

    Method Parse

    | Improve this Doc View Source

    Parse(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

    dataSource is null.

    ParserException

    If the parser encounters one or more errors. This exception is not thrown if the IgnoreParserException() method is invoked.

    | Improve this Doc View Source

    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

    dataSource is null.

    ParserException

    If the parser encounters one or more errors. This exception is not thrown if the IgnoreParserException() method is invoked.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright ©2021 DotEnv.Core