Partager via


ICorProfilerInfo::GetThreadContext, méthode

Mise à jour : novembre 2007

Obtient l'identité de contexte actuellement associée au thread spécifié.

HRESULT GetThreadContext(
    [in]  ThreadID  threadId,
        [out] ContextID *pContextId);

Paramètres

  • threadId
    [in] ID du thread.

  • pContextId
    [out] Pointeur vers l'ID de contexte actuellement associé au thread spécifié. Si aucun contexte n'est actuellement associé au thread, cette fonction retournera CORPROF_E_DATAINCOMPLETE.

Configuration requise

Plateformes : consultez Configuration requise du .NET Framework.

En-tête : Corprof.idl

Bibliothèque : CorGuids.lib

Versions du .NET Framework : 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

Voir aussi

Référence

ICorProfilerInfo