Search Results for

    Show / Hide Table of Contents

    Method TryGetBoolValue

    | Improve this Doc View Source

    TryGetBoolValue(String, out Boolean)

    Try to retrieve the value of a variable in bool format.

    Declaration
    bool TryGetBoolValue(string variable, out bool value)
    Parameters
    Type Name Description
    String variable

    The variable name of the value to try retrieve.

    Boolean value

    The bool value retrieved or false.

    Returns
    Type Description
    Boolean

    true if the variable is set, otherwise false.

    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

    FormatException

    value is not in bool format.

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