IDebugExpressionEvaluator::GetMethodLocationProperty
如需 Visual Studio 2017 的最新文件請參閱 Visual Studio 2017 文件。
此方法會將方法的位置和位移到的記憶體位址。
語法
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