Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void Abort()

Declaration

public void Abort()

Summary

Aborts the command by killing the process and all its children, if any. Throws if the command has not been started yet. Does nothing if the command has already ended. See Remarks.

Remarks

It is theoretically possible that this method will fail to terminate a child, if called at exactly the wrong time while a child process is being spawned. To avoid this possibility, pause the process tree first by calling CommandRunner.Pause(TimeSpan?) (but see its remarks too).