IVsLanguageDebugInfo::GetProximityExpressions Method (IVsTextBuffer^, Int32, Int32, Int32, IVsEnumBSTR^)
Generates proximity expressions.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetProximityExpressions( IVsTextBuffer^ pBuffer, int iLine, int iCol, int cLines, [OutAttribute] IVsEnumBSTR^% ppEnum )
Parameters
- pBuffer
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextBuffer^
[in] The IVsTextBuffer interface for the text buffer containing the expression.
- iLine
-
Type:
System::Int32
[in] Number of the line containing the start of the expression.
- iCol
-
Type:
System::Int32
[in] Column position within the line.
- cLines
-
Type:
System::Int32
[in] Number of lines within the expression.
- ppEnum
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsEnumBSTR^
[out] Returns an IVsEnumBSTR object that is used to enumerate BSTRs.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsLanguageDebugInfo::GetProximityExpressions( [in] IVsTextBuffer *pBuffer, [in] long iLine, [in] long iCol, [in] long cLines, [out] IVsEnumBSTR **ppEnum );
This method is implemented by a language service to provide information needed to populate the Autos debugging window. When the debugger calls this method, the debugger is requesting the names of any parameters and variables in a span of lines beginning with the starting position identified by the iLine and iCol parameters in the specified text buffer. The extent of lines beyond this point is specified by the cLines parameter.