Class WindowsEnvironment
Implements
Inherited Members
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
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 |
string | workingDirectory | Working directory for the new process. |
Returns
Type | Description |
---|---|
Process | Process object ready to start. |
Overrides
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
SplitPathVariable(string)
Declaration
protected override string[] SplitPathVariable(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value |
Returns
Type | Description |
---|---|
string[] |