Summary
Provides access to environment variables in the current process.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
graph BT
Type["IEnvironment"]
class Type type-node
Syntax
public interface IEnvironment
Attributes
| Type | Description |
|---|---|
| Nullable |
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
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|