Process.Terminate(Boolean) 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.
Terminates this process.
void Terminate(bool WaitForBreakOrEnd = true);
[System.Runtime.InteropServices.DispId(4)]
public void Terminate (bool WaitForBreakOrEnd = true);
[<System.Runtime.InteropServices.DispId(4)>]
abstract member Terminate : bool -> unit
Public Sub Terminate (Optional WaitForBreakOrEnd As Boolean = true)
Parameters
- WaitForBreakOrEnd
- 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.
- Attributes
Examples
The following example demonstrates how to use the Terminate method.
public static void Terminate(DTE dte)
{
EnvDTE.Processes processes = dte.Debugger.DebuggedProcesses;
processes.Item(1).Terminate(true);
}
Shared Sub TerminateMethod(ByRef dte As EnvDTE.DTE)
Dim processes As EnvDTE.Processes = dte.Debugger.DebuggedProcesses
processes.Item(1).Terminate(True)
End Sub