Search Results for

    Show / Hide Table of Contents

    Method EnvUInt

    | Improve this Doc View Source

    EnvUInt(String, UInt32)

    Gets the value of a variable in uint format.

    Declaration
    uint EnvUInt(string variable, uint defaultValue = 0U)
    Parameters
    Type Name Description
    String variable

    Environment variable name.

    UInt32 defaultValue

    A default value in case the variable is not set.

    Returns
    Type Description
    UInt32

    A value of the environment variable in uint format.

    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 uint format.

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