Freigeben über


ICorProfilerInfo2::GetThreadStaticAddress Method

Gets the address of the specified thread-static field that is in the scope of the specified thread.

HRESULT GetThreadStaticAddress(
    [in] ClassID     classId,
    [in] mdFieldDef  fieldToken,
    [in] ThreadID    threadId,
    [out] void       **ppAddress);

Parameters

Parameter Description

classId

[in] The ID of the class containing the requested thread-static field.

fieldToken

[in] The metadata token for the requested thread-static field.

threadId

[in] The ID of the thread that is the scope for the requested static field.

ppAddress

[out] A pointer to the address of the static field that is within the specified thread.

Remarks

The GetThreadStaticAddress method might return a CORPROF_E_DATAINCOMPLETE HRESULT if the given static field has not been assigned an address in the specified thread.

Requirements

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

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Reference

ICorProfilerInfo Interface
ICorProfilerInfo2 Interface