Search Results for

    Show / Hide Table of Contents

    Method HasValue

    | Improve this Doc View Source

    HasValue(String)

    Checks if the variable has a value.

    Declaration
    public virtual bool HasValue(string variable)
    Parameters
    Type Name Description
    String variable

    The variable to validate.

    Returns
    Type Description
    Boolean

    true if the variable has a value, otherwise false.

    Implements
    IEnvReader.HasValue(String)
    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

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