Class Env
This class defines methods to perform checks with the current environment.
Inherited Members
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 |
IsEnvironment(String) | Compares the current environment name against the specified value. |
IsProduction() | Checks if the current environment name is |
IsStaging() | Checks if the current environment name is |
IsTest() | Checks if the current environment name is |