Search Results for

    Show / Hide Table of Contents

    Class Env

    This class defines methods to perform checks with the current environment.

    Inheritance
    Object
    Env
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: DotEnv.Core
    Assembly: DotEnv.Core.dll
    Syntax
    public static class Env

    Properties

    Name Description
    CurrentEnvironment

    Gets or sets the current environment (dev, test, staging, or production).

    Methods

    Name Description
    IsDevelopment()

    Checks if the current environment name is development, or dev.

    IsEnvironment(String)

    Compares the current environment name against the specified value.

    IsProduction()

    Checks if the current environment name is production, or prod.

    IsStaging()

    Checks if the current environment name is staging.

    IsTest()

    Checks if the current environment name is test.

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