Show / Hide Table of Contents

Class EnvironmentExtensions

Inheritance
object
EnvironmentExtensions
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: GitCredentialManager
Assembly: Algenta.Colectica.Repository.Client.dll
Syntax
public static class EnvironmentExtensions

Methods

CreateProcess(IEnvironment, string, string)

Create a process ready to start, with redirected streams.

Declaration
public static Process CreateProcess(this IEnvironment environment, string path, string args)
Parameters
Type Name Description
IEnvironment environment

The IEnvironment.

string path

Absolute file path of executable to start.

string args

Command line arguments to pass to executable.

Returns
Type Description
Process

Process object ready to start.

CreateProcess(IEnvironment, string, string, bool)

Create a process ready to start, with redirected streams.

Declaration
public static Process CreateProcess(this IEnvironment environment, string path, string args, bool useShellExecute)
Parameters
Type Name Description
IEnvironment environment

The IEnvironment.

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.

Returns
Type Description
Process

Process object ready to start.

LocateExecutable(IEnvironment, string)

Locate an executable on the current PATH.

Declaration
public static string LocateExecutable(this IEnvironment environment, string program)
Parameters
Type Name Description
IEnvironment environment

The IEnvironment.

string program

Executable program name.

Returns
Type Description
string

List of all instances of the found executable program, in order of most specific to least.

In this article
Back to top Generated by DocFX