Search Results for

    Show / Hide Table of Contents

    Method TryGetULongValue

    | Improve this Doc View Source

    TryGetULongValue(String, out UInt64)

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

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

    The variable name of the value to try retrieve.

    UInt64 value

    The ulong value retrieved or 0.

    Returns
    Type Description
    Boolean

    true if the variable is set, otherwise false.

    Implements
    IEnvReader.TryGetULongValue(String, out UInt64)
    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

    FormatException

    value is not in ulong format.

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