ICorDebugThread::GetUserState 方法ICorDebugThread::GetUserState Method

取得此 ICorDebugThread 的目前使用者狀態。Gets the current user state of this ICorDebugThread.

語法Syntax

HRESULT GetUserState (  
    [out] CorDebugUserState   *pState  
);  

參數Parameters

pState
擴展CorDebugUserState 列舉值的位元組合指標,可描述這個執行緒目前的使用者狀態。[out] A pointer to a bitwise combination of CorDebugUserState enumeration values that describe the current user state of this thread.

備註Remarks

執行緒的使用者狀態是正在進行偵錯工具檢查時,執行緒的狀態。The user state of the thread is the state of the thread when it is examined by the program that is being debugged. 執行緒可以設定多個狀態位。A thread may have multiple state bits set.

規格需求Requirements

平台: 請參閱 系統需求Platforms: See System Requirements.

標頭: CorDebug.idl、CorDebug.hHeader: CorDebug.idl, CorDebug.h

程式庫: CorGuids.libLibrary: CorGuids.lib

.NET Framework 版本:自 1.0 起可用Available since 1.0.NET Framework Versions: 自 1.0 起可用Available since 1.0