ICorDebugController::Terminate 方法

更新:2007 年 11 月

使用指定的退出代码终止进程。

说明:

此方法是 Win32 TerminateProcess 函数的包装。因此,Terminate 采用与 Win32 TerminateProcess 函数相同的方式使用退出代码。

HRESULT Terminate (
    [in] UINT exitCode
);

参数

  • exitCode
    [in] 一个充当退出代码的数字值。Winbase.h 中定义了有效的数字值。

备注

如果进程在调用 Terminate 时停止,则应当使用 ICorDebugController::Continue 方法使进程继续,以使调试器通过 ICorDebugManagedCallback::ExitProcessICorDebugManagedCallback::ExitAppDomain 回调接收终止确认。

说明:

此方法不由应用程序域实现。也就是说,它不是在 AppDomain 级别实现的。

要求

**平台:**请参见 .NET Framework 系统要求

**头文件:**CorDebug.idl

**库:**CorGuids.lib

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

请参见

参考

ICorDebugController