Search Results for

    Show / Hide Table of Contents

    Method TryGetStringValue

    | Improve this Doc View Source

    TryGetStringValue(String, out String)

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

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

    The variable name of the value to try retrieve.

    String value

    The string value retrieved or null.

    Returns
    Type Description
    Boolean

    true if the variable is set, otherwise false.

    Exceptions
    Type Condition
    ArgumentNullException

    variable is null.

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