Share via


IDebugExpressionEvaluator::GetMethodLocationProperty

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This method converts a method location and offset into a memory address.

Syntax

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  
);  

Parameters

upstrFullyQualifiedMethodPlusOffset
[in] The method location and offset, expressed as a string.

pSymbolProvider
[in] The symbol provider expressed as an IDebugSymbolProvider object.

pAddress
[in] An address within the method, expressed as an IDebugAddress object.

pBinder
[in] The binder expressed as an IDebugBinder object.

ppProperty
[out] Returns an IDebugProperty2 interface that represents the memory address.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

The returned address can be used to set a breakpoint, for example.

Despite the name upstrFullyQualifiedMethodPlusOffset, this parameter can be passed a partially qualified method name. In that case, the selected method is the one that encloses pAddress. How this parameter is interpreted is up to the implementation of the expression evaluator and the language it supports.

See Also

IDebugSymbolProvider
IDebugBinder
IDebugProperty2
IDebugExpressionEvaluator