Search Results for

    Show / Hide Table of Contents

    Method GetBoolValue

    | Improve this Doc View Source

    GetBoolValue(String)

    Gets the value of a variable in bool format.

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

    The variable name of the value to get.

    Returns
    Type Description
    Boolean

    A value of the variable in bool format.

    Implements
    IEnvReader.GetBoolValue(String)
    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

    VariableNotSetException

    variable is not set.

    FormatException

    value is not in bool format.

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