Terminates the process with the specified exit code.
This method is a wrapper for the Win32 TerminateProcess function. Thus, Terminate uses the exit code in the same way that the Win32 TerminateProcess function uses it.
If the process is stopped when Terminate is called, the process should be continued by using the ICorDebugController::Continue method so that the debugger receives confirmation of the termination through the ICorDebugManagedCallback::ExitProcess or ICorDebugManagedCallback::ExitAppDomain callback.
This method is not implemented by an application domain. That is, it is not implemented at the AppDomain level.
Platforms: See .NET Framework System Requirements.
Header: CorDebug.idl, CorDebug.h
.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0, 1.1, 1.0