IEnvironment Interface

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
NullableContextAttribute

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 System.ArgumentNullException when value is null; otherwise returns the value.