Compartilhar via


ICorProfilerInfo2::GetContextStaticAddress Method

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

HRESULT GetContextStaticAddress(
    [in] ClassID classId,
    [in] mdFieldDef fieldToken,
    [in] ContextID contextId,
    [out] void **ppAddress);

Parameters

  • classId
    [in] The ID of the class that contains the requested context-static field.

  • fieldToken
    [in] The metadata token for the requested context-static field.

  • contextId
    [in] The ID of the context that is the scope for the requested context-static field.

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

Remarks

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

Requirements

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

Header: CorProf.idl

Library: CorGuids.lib

.NET Framework Version: 2.0

See Also

Concepts

ICorProfilerInfo Interface

ICorProfilerInfo2 Interface