Process.Kill Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Immediately stops the associated process.
public:
void Kill();
public void Kill();
member this.Kill : unit -> unit
Public Sub Kill ()
Exceptions
The associated process could not be terminated.
You are attempting to call Kill() for a process that is running on a remote computer. The method is available only for processes running on the local computer.
There is no process associated with this Process object.