共用方式為


ICorDebugManagedCallback::ExitThread 方法

通知偵錯工具,執行受控程式碼的執行緒已結束。

語法

HRESULT ExitThread (  
    [in] ICorDebugAppDomain *pAppDomain,  
    [in] ICorDebugThread    *thread  
);  

參數

pAppDomain
[輸入] ICorDebugAppDomain 物件的指標,此物件代表包含受控執行緒的應用程式定義域。

thread
[輸入] 代表受控執行緒的 ICorDebugThread 物件指標。

備註

一旦引發了 ExitThread 回呼,執行緒就不再出現於執行緒列舉中。

規格需求

平台:請參閱系統需求

標頭:CorDebug.idl、CorDebug.h

程式庫:CorGuids.lib

.NET Framework版本:自 1.0 起可用

另請參閱