Метод | Описание | |
---|---|---|
CancelAsync ( ) : void |
Cancels the running command. Throws an exception if called on a command that is not executing.
|
|
CloseStandardInput ( ) : void |
Closes the standard input to this command.
|
|
Execute ( ) : int |
Executes this command with the default CommandStartInfo for this Command. The default CommandStartInfo options can be set by deriving from this class and then overriding the Command.DefaultCommandStartInfo property. |
|
Execute ( |
Uses a CommandStartInfo object to execute this command.
|
|
ExecuteAsync ( ) : void |
Executes the command with default starting parameters.
|
|
ExecuteAsync ( |
Executes the command with custom starting parameters.
|
|
GetSyntax ( ) : string |
Gets the command prompt String representation for this Command.
|
|
WaitForExit ( ) : void | ||
WriteLineToStandardIn ( string input ) : void |
Writes a System.String followed by a newline to the standard input of this command. This method can only be used after Command.Execute() has been called. |
|
WriteToStandardIn ( ICollection |
Writes a collection of strings to the standard input of this command. This method can only be used after Command.Execute() has been called. |
|
WriteToStandardIn ( string input ) : void |
Writes a System.String to the standard input of this command. This method can only be used after Command.Execute() has been called. |
Метод | Описание | |
---|---|---|
OnCommandStarting ( |
||
OnErrorOutputWritten ( string outputLine ) : void | ||
OnExecuteCompleted ( ) : void |
Called when the command has finished running.
|
|
OnStandardOutputWritten ( string outputLine ) : void |
Метод | Описание | |
---|---|---|
CleanupProcess ( ) : int |
Handles all the finishing tasks within the command.
|
|
GetCommandSyntaxAttribute ( ) : |
Gets the CommandSyntaxAttribute that adorns this command. This method throws a SyntaxException if it cannot find a CommandSyntaxAttribute. This is generally wanted behavior since all classes implementing Command are required to have this attribute. |
|
ProcessExited ( object sender, |
||
StartProcess ( |
Starts the process with customized starting information
|
public Execute ( |
||
startInfo | Specifies how to execute this command. | |
Результат | int |
public ExecuteAsync ( |
||
startInfo | The CommandStartInfo object that defines how the command should start | |
Результат | void |
protected OnCommandStarting ( |
||
e | ||
Результат | void |
protected OnErrorOutputWritten ( string outputLine ) : void | ||
outputLine | string | |
Результат | void |
protected OnStandardOutputWritten ( string outputLine ) : void | ||
outputLine | string | |
Результат | void |
public WriteLineToStandardIn ( string input ) : void | ||
input | string | |
Результат | void |
public WriteToStandardIn ( ICollection |
||
input | ICollection |
|
Результат | void |
public WriteToStandardIn ( string input ) : void | ||
input | string | |
Результат | void |