ICorDebugController::Terminate 方法

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

注释

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

Syntax

HRESULT Terminate (
    [in] UINT exitCode
);

参数

exitCode [in]一个作为退出代码的数值。 有效的数值在 Winbase.h 中定义。

注解

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

注释

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

要求

平台: 请参阅 .NET 支持的作系统

页眉: CorDebug.idl、CorDebug.h

图书馆: CorGuids.lib

.NET 版本: 自 .NET Framework 1.0 起可用

另请参阅