IEnvironment Interface

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
GetEnvironmentVariable(string) string
Returns the value of the named environment variable, or null if it is not set.
SetEnvironmentVariable(string, string) void
Sets the named environment variable to the given value, or removes it when value is null.

Extension Methods

Name Value Summary
NotNull<IEnvironment>(string) T
Throws ArgumentNullException when value is null; otherwise returns the value.
GitHub