Process.Terminate(Boolean) Process.Terminate(Boolean) Process.Terminate(Boolean) Process.Terminate(Boolean) Method


Terminates this process.

void Terminate(bool WaitForBreakOrEnd = true);
public void Terminate (bool WaitForBreakOrEnd = true);
abstract member Terminate : bool -> unit
Public Sub Terminate (Optional WaitForBreakOrEnd As Boolean = true)


Boolean Boolean Boolean Boolean

Set to true if the debugging session should stop only when it reaches a break or the end. Set to false if you intend to stop debugging, but you have to perform other tasks in the macro before the debugger breaks or ends. For more information, see Breaking Execution.


The following example demonstrates how to use the Terminate method.

public static void Terminate(DTE dte)  
    EnvDTE.Processes processes = dte.Debugger.DebuggedProcesses;  
Shared Sub TerminateMethod(ByRef dte As EnvDTE.DTE)  
    Dim processes As EnvDTE.Processes = dte.Debugger.DebuggedProcesses  
End Sub  

Applies to