Freigeben über


IDebugExpressionEvaluator::GetMethodLocationProperty

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

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

Reference

IDebugSymbolProvider

IDebugBinder

IDebugProperty2

IDebugExpressionEvaluator