Search Results for

    Show / Hide Table of Contents

    Method TryGetLongValue

    | Improve this Doc View Source

    TryGetLongValue(String, out Int64)

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

    Declaration
    public virtual bool TryGetLongValue(string variable, out long value)
    Parameters
    Type Name Description
    String variable

    The variable name of the value to try retrieve.

    Int64 value

    The long value retrieved or 0.

    Returns
    Type Description
    Boolean

    true if the variable is set, otherwise false.

    Implements
    IEnvReader.TryGetLongValue(String, out Int64)
    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

    FormatException

    value is not in long format.

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