ICorDebugController
更新:2007 年 11 月
表示可以控制程式碼執行內容的範圍 (Process 或 AppDomain 其中一項)。
interface ICorDebugController : IUnknown {
/* OBSOLETE */
HRESULT CanCommitChanges (
[in] ULONG cSnapshots,
[in, size_is(cSnapshots)]
ICorDebugEditAndContinueSnapshot *pSnapshots[],
[out] ICorDebugErrorInfoEnum **pError
);
/* OBSOLETE */
HRESULT CommitChanges (
[in] ULONG cSnapshots,
[in, size_is(cSnapshots)]
ICorDebugEditAndContinueSnapshot *pSnapshots[],
[out] ICorDebugErrorInfoEnum **pError
);
HRESULT Continue (
[in] BOOL fIsOutOfBand
);
HRESULT Detach ();
HRESULT EnumerateThreads (
[out] ICorDebugThreadEnum **ppThreads
);
HRESULT HasQueuedCallbacks (
[in] ICorDebugThread *pThread,
[out] BOOL *pbQueued
);
HRESULT IsRunning (
[out] BOOL *pbRunning
);
HRESULT SetAllThreadsDebugState (
[in] CorDebugThreadState state,
[in] ICorDebugThread *pExceptThisThread
);
HRESULT Stop (
[in] DWORD dwTimeoutIgnored
);
HRESULT Terminate (
[in] UINT exitCode
);
};
方法
方法 |
描述 |
---|---|
ICorDebugController::CanCommitChanges |
這個方法已過時。 |
ICorDebugController::CommitChanges |
這個方法已過時。 |
在呼叫 ICorDebugController::Stop 之後,繼續執行 Managed 執行緒。 |
|
從處理序或應用程式定義域中斷偵錯工具連結。 |
|
取得此處理序中現用的 Managed 執行緒列舉值。 |
|
取得值,指出目前是否有任何 Managed 回呼排入指定執行緒的佇列。 |
|
取得值,指出處理序中的執行緒目前是否自由執行。 |
|
設定此處理序中所有 Managed 執行緒的偵錯狀態。 |
|
在處理序中執行 Managed 程式碼的所有執行緒上執行合作式停止。 |
|
以指定的結束代碼 (Exit Code) 終止處理序。 |
備註
如果 ICorDebugController 是控制處理序,則此範圍包含此處理序的所有執行緒。如果 ICorDebugController 是控制應用程式定義域,則此範圍只包含該特定應用程式定義域的執行緒。
需求
**平台:**請參閱 .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