Search Results for

    Show / Hide Table of Contents

    Method EnvULong

    | Improve this Doc View Source

    EnvULong(String, UInt64)

    Gets the value of a variable in ulong format.

    Declaration
    public virtual ulong EnvULong(string variable, ulong defaultValue = 0UL)
    Parameters
    Type Name Description
    String variable

    Environment variable name.

    UInt64 defaultValue

    A default value in case the variable is not set.

    Returns
    Type Description
    UInt64

    A value of the environment variable in ulong format.

    Implements
    IEnvReader.EnvULong(String, UInt64)
    Remarks

    If the environment variable is not set, the method will return the default value.

    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