Share via


IDebugStackFrame2::GetExpressionContext

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

Gets an evaluation context for expression evaluation within the current context of a stack frame and thread.

Syntax

HRESULT GetExpressionContext (   
   IDebugExpressionContext2** ppExprCxt  
);  
int GetExpressionContext (   
   out IDebugExpressionContext2 ppExprCxt  
);  

Parameters

ppExprCxt
[out] Returns an IDebugExpressionContext2 object that represents a context for expression evaluation.

Return Value

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

Remarks

Generally, an expression evaluation context can be thought of as a scope for performing expression evaluation. Call the ParseText method to parse an expression and then call the resulting EvaluateSync or EvaluateAsync methods to evaluate the parsed expression.

See Also

IDebugStackFrame2
IDebugExpressionContext2
ParseText
EvaluateSync
EvaluateAsync