Show / Hide Table of Contents

Class WindowsEnvironment

Inheritance
object
EnvironmentBase
WindowsEnvironment
Implements
IEnvironment
Inherited Members
EnvironmentBase.Variables
EnvironmentBase.Trace
EnvironmentBase.FileSystem
EnvironmentBase.IsDirectoryOnPath(string)
EnvironmentBase.TryLocateExecutable(string, out string)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: GitCredentialManager.Interop.Windows
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public class WindowsEnvironment : EnvironmentBase, IEnvironment

Constructors

WindowsEnvironment(IFileSystem)

Declaration
public WindowsEnvironment(IFileSystem fileSystem)
Parameters
Type Name Description
IFileSystem fileSystem

Methods

AddDirectoryToPath(string, EnvironmentVariableTarget)

Add the directory to the path.

Declaration
public override void AddDirectoryToPath(string directoryPath, EnvironmentVariableTarget target)
Parameters
Type Name Description
string directoryPath

Path to directory to add to the path.

EnvironmentVariableTarget target

The level of the path environment variable that should be modified.

Overrides
EnvironmentBase.AddDirectoryToPath(string, EnvironmentVariableTarget)

CreateProcess(string, string, bool, string)

Create a process ready to start, with redirected streams.

Declaration
public override Process CreateProcess(string path, string args, bool useShellExecute, string workingDirectory)
Parameters
Type Name Description
string path

Absolute file path of executable or command to start.

string args

Command line arguments to pass to executable.

bool useShellExecute

True to resolve path using the OS shell, false to use as an absolute file path.

string workingDirectory

Working directory for the new process.

Returns
Type Description
Process

Process object ready to start.

Overrides
EnvironmentBase.CreateProcess(string, string, bool, string)

RemoveDirectoryFromPath(string, EnvironmentVariableTarget)

Remove the directory from the path.

Declaration
public override void RemoveDirectoryFromPath(string directoryPath, EnvironmentVariableTarget target)
Parameters
Type Name Description
string directoryPath

Path to directory to remove from the path.

EnvironmentVariableTarget target

The level of the path environment variable that should be modified.

Overrides
EnvironmentBase.RemoveDirectoryFromPath(string, EnvironmentVariableTarget)

SplitPathVariable(string)

Declaration
protected override string[] SplitPathVariable(string value)
Parameters
Type Name Description
string value
Returns
Type Description
string[]
Overrides
EnvironmentBase.SplitPathVariable(string)

Implements

IEnvironment

Extension Methods

EnvironmentExtensions.CreateProcess(IEnvironment, string, string)
EnvironmentExtensions.CreateProcess(IEnvironment, string, string, bool)
EnvironmentExtensions.LocateExecutable(IEnvironment, string)
In this article
Back to top Generated by DocFX