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);
The GetContextStaticAddress method may return one of the following:
A CORPROF_E_DATAINCOMPLETE HRESULT if the given static field has not been assigned an address in the specified context.
The addresses of objects that may be in the garbage collection heap. These addresses may become invalid after garbage collection, so after garbage collection, profilers should not assume that they are valid.
Before a class’s class constructor is completed, GetContextStaticAddress will return CORPROF_E_DATAINCOMPLETE for all its static fields, although some of the static fields may already be initialized and rooting garbage collection objects.
Platforms: See .NET Framework System Requirements.
Header: CorProf.idl, CorProf.h
.NET Framework Versions: 4.5, 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0