Search Results for

    Show / Hide Table of Contents

    Method AddEnvFiles

    | Improve this Doc View Source

    AddEnvFiles(String[])

    Adds the .env files in a collection.

    Declaration
    IEnvLoader AddEnvFiles(params string[] paths)
    Parameters
    Type Name Description
    String[] paths

    The .env files paths to add.

    Returns
    Type Description
    IEnvLoader

    An instance implementing the fluent interface.

    Exceptions
    Type Condition
    ArgumentNullException

    paths is null.

    ArgumentException

    The length of the paths list is zero.

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