Summary
Provides access to environment variables in the current process.
- Namespace
- GitVersion
graph BT Type["IEnvironment"] class Type type-node
Syntax
public interface IEnvironment
Methods
| Name | Value | Summary |
|---|---|---|
|
Get |
string |
Returns the value of the named environment variable, or
null if it is not set.
|
|
Set |
void |
Sets the named environment variable to the given value,
or removes it when
value is
null.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
|
NotNull |
T |
Throws
ArgumentNullException when
value is
null; otherwise returns the
value.
From
CommonExtensions
|