ICorDebugClass::GetStaticFieldValue Method
Gets the value of the specified static field.
HRESULT GetStaticFieldValue (
[in] mdFieldDef fieldDef,
[in] ICorDebugFrame *pFrame,
[out] ICorDebugValue **ppValue
);
Parameters
- fieldDef
[in] A field Def token that references the field to be retrieved.
pFrame
[in] A pointer to an ICorDebugFrame Interface object that represents the frame to be used to disambiguate among thread, context, or application domain statics.If the static field is relative to a thread, a context, or an application domain, the frame will determine the proper value.
- ppValue
[out] A pointer to the address of an ICorDebugValue Interface object that represents the value of the static field.
Remarks
For parameterized types, the value of a static field is relative to the particular instantiation. Therefore, if the class constructor takes parameters of type Type, call ICorDebugType::GetStaticFieldValue Method instead of ICorDebugClass::GetStaticFieldValue.
Requirements
Platforms: Windows 2000, Windows XP, Windows Server 2003 family
Header: CorDebug.idl
Library: CorGuids.lib
.NET Framework Version: 2.0, 1.1, 1.0