Freigeben über


ICorDebugThread2::GetTaskID Method

Gets the identifier of the task running on this thread.

HRESULT GetTaskID (
    [out] TASKID        *pTaskId
);

Parameters

Parameter Description

pTaskId

[out] A pointer to the identifier of the task running on the thread represented by this ICorDebugThread2 Interface object.

Remarks

A task can only be running on the thread if the thread is associated with a connection. GetTaskID returns zero in *pTaskId if the thread is not associated with a connection.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorDebugThread2 Interface
ICorDebugThread Interface