description | title | ms.date | api_name | api_location | api_type | f1_keywords | helpviewer_keywords | ms.assetid | topic_type | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: ICorProfilerInfo2::GetRVAStaticAddress Method |
ICorProfilerInfo2::GetRVAStaticAddress Method |
03/30/2017 |
|
|
|
|
|
a25a8f8b-5cfa-440d-9376-a1a1c3a9fc11 |
|
Gets the address of the specified relative virtual address (RVA) static field.
HRESULT GetRVAStaticAddress(
[in] ClassID classId,
[in] mdFieldDef fieldToken,
[out] void **ppAddress);
classId
[in] The ID of the class that contains the requested RVA-static field.
fieldToken
[in] Metadata token for the requested RVA-static field.
ppAddress
[out] A pointer to the address of the RVA-static field.
The GetRVAStaticAddress
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, GetRVAStaticAddress
will return CORPROF_E_DATAINCOMPLETE for all its static fields, although some of the static fields may already be initialized and may be rooting garbage collection objects.
Platforms: See System Requirements.
Header: CorProf.idl, CorProf.h
Library: CorGuids.lib
.NET Framework Versions: [!INCLUDEnet_current_v20plus]