共用方式為


IDebugExpressionEvaluator::GetMethodLocationProperty

這個方法會將方法的位置] 與 [位移轉換記憶體位址。

HRESULT GetMethodLocationProperty( 
   LPCOLESTR             upstrFullyQualifiedMethodPlusOffset,
   IDebugSymbolProvider* pSymbolProvider,
   IDebugAddress*        pAddress,
   IDebugBinder*         pBinder,
   IDebugProperty2**     ppProperty
);
int GetMethodLocationProperty(
   string               upstrFullyQualifiedMethodPlusOffset, 
   IDebugSymbolProvider pSymbolProvider, 
   IDebugAddress        pAddress, 
   IDebugBinder         pBinder, 
   out IDebugProperty2  ppProperty
);

參數

  • upstrFullyQualifiedMethodPlusOffset
    [in]方法的位置和位移值,表示為字串。

  • pSymbolProvider
    [in]符號提供者表示成IDebugSymbolProvider物件。

  • pAddress
    [in]在方法中,以表示一個位址IDebugAddress物件。

  • pBinder
    [in]繫結器表示成IDebugBinder物件。

  • ppProperty
    [] out傳回IDebugProperty2 ,表示記憶體位址的介面。

傳回值

如果成功的話,會傳回S_OK。 否則,會傳回錯誤碼。

備註

傳回的地址可用來設定中斷點,例如。

雖然名稱 upstrFullyQualifiedMethodPlusOffset,這個參數可以傳遞了不完整的方法名稱。 在此情況下,選取的方法是封入 pAddress。 這個參數會被解譯的方式是由實作運算式評估工具和它所支援的語言。

請參閱

參考

IDebugSymbolProvider

IDebugBinder

IDebugProperty2

IDebugExpressionEvaluator