Process.Kill Method

Definition

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.

Applies to

See also