使用指定的結束碼終止處理程序。
備註
這個方法是 Win32 TerminateProcess 函式的包裝函式。 因此,以 Terminate 與 Win32 TerminateProcess 函式相同的方式使用結束碼。
語法
HRESULT Terminate (
[in] UINT exitCode
);
參數
exitCode [在]作為結束碼的數值。 有效的數值定義在 Winbase.h 中。
備註
如果在呼叫時 Terminate 停止進程,則應該使用 ICorDebugController::Continue 方法繼續進程,讓偵錯工具透過 ICorDebugManagedCallback::ExitProcess 或 ICorDebugManagedCallback::ExitAppDomain 回呼接收終止的確認。
備註
此方法不是由應用程式網域實作。 也就是說,它沒有在層面上 AppDomain 實現。
需求
平台: 請參閱 .NET 支援的作業系統。
標題: CorDebug.idl、CorDebug.h
圖書館: CorGuids.lib
.NET 版本: 自 .NET Framework 1.0 起提供