C# Class Crabwise.CommandWrap.CommandStartInfo

Specifies a set of values that are used when you execute a command.
Properties of this class are passed to an instance of System.Diagnostics.ProcessStartInfo when spawning the process for this command.
ファイルを表示 Open project: CrabwiseStudios/CommandWrap Class Usage Examples

Public Methods

Method Description
CommandStartInfo ( ) : System

Initializes a new instance of the CommandStartInfo class with empty properties.

CommandStartInfo ( ProcessStartInfo processStartInfo ) : System

Initializes a new instance of the CommandStartInfo class using a ProcessStartInfo object to initialize its properties.

CommandStartInfo ( string path ) : System

Initializes a new instance of the CommandStartInfo class using a path.

Private Methods

Method Description
GetProcessStartInfo ( string fileName ) : ProcessStartInfo

Returns a System.Diagnostics.ProcessStartInfo object which has matching properties of this CommandStartInfo object.

Specifically, the returned System.Diagnostics.ProcessStartInfo object that is returned has the same properties except for CommandStartInfo.Path and CommandStartInfo.WorkingDirectory.

Method Details

CommandStartInfo() public method

Initializes a new instance of the CommandStartInfo class with empty properties.
public CommandStartInfo ( ) : System
return System

CommandStartInfo() public method

Initializes a new instance of the CommandStartInfo class using a ProcessStartInfo object to initialize its properties.
public CommandStartInfo ( ProcessStartInfo processStartInfo ) : System
processStartInfo System.Diagnostics.ProcessStartInfo The object to use.
return System

CommandStartInfo() public method

Initializes a new instance of the CommandStartInfo class using a path.
public CommandStartInfo ( string path ) : System
path string The path to use for executing a command.
return System