The GetObjectField method of the IJavaEventMonitorIDInfo2 interface is called by a profiler to obtain the value of a field in a class instance. The profiler must pass the ObjectID representing the instance of a class and the FieldID it is interested in.
The GetObjectField method is implemented only by the IJavaEventMonitorIDInfo2 and IJavaEventMonitorIDInfo3 interfaces.
HRESULT GetObjectField(ObjectID object_id, FieldID field_id, __int64 *pvalue);
The value of the field. If the JVM_FIELD_OBJECTREF flag is set for the FieldID by FieldInformation, the returned value will be NULL or an ObjectID.
[in] object_id | The ObjectID of the class instance that the profiler is interested in. |
[in] field_id | The FieldID of the field that the profiler is interested in. |
[out] *pvalue | The value of the field. |