共用方式為


IDebugMemoryContext2

這個介面表示執行程式的偵錯的電腦的位址空間中的位置。

IDebugMemoryContext2 : IUnknown

實作器注意事項

偵錯引擎 (DE) 會實作這個介面表示記憶體中的地址。

呼叫者的備忘稿

呼叫IDebugProperty2::GetMemoryContextIDebugReference2::GetMemoryContext會傳回這個介面。 此外,要呼叫的方法IDebugMemoryContext2::AddIDebugMemoryContext2::Subtract套用適當的算術運算後傳回這個介面的新複本。

方法 Vtable 順序

下表顯示的方法IDebugMemoryContext2

方法

描述

IDebugMemoryContext2::GetName

取得此內容的使用者可顯示的名稱。

IDebugMemoryContext2::GetInfo

取得描述這個內容的資訊。

IDebugMemoryContext2::Add

將指定的值加入至目前的內容的位址,來建立新的內容中。

IDebugMemoryContext2::Subtract

四元數減去指定的值,從目前的內容的位址,來建立新的內容。

IDebugMemoryContext2::Compare

比較兩個內容的方式由比較旗標。

備註

Visual Studio 的記憶體的視窗呼叫IDebugProperty2::GetMemoryContext以取得IDebugMemoryContext2 ,其中包含評估的運算式所使用的記憶體位址的介面。 此內容會接著傳遞給IDebugMemoryBytes2::ReadAtIDebugMemoryBytes2::WriteAt來指定要讀取或寫入的地址。

需求

標頭: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

組件: Microsoft.VisualStudio.Debugger.Interop.dll

請參閱

參考

IDebugProperty2::GetMemoryContext

IDebugReference2::GetMemoryContext

IDebugMemoryBytes2::ReadAt

IDebugMemoryBytes2::WriteAt

概念

核心介面