หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Gets the value of the specified static field.
Syntax
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 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 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 instead of ICorDebugClass::GetStaticFieldValue.
Requirements
Platforms: See .NET supported operating systems.
Header: CorDebug.idl, CorDebug.h
Library: CorGuids.lib
.NET versions: Available since .NET Framework 1.0