共用方式為


IVsLanguageDebugInfo.GetProximityExpressions Method

Definition

Generates proximity expressions.

public:
 int GetProximityExpressions(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, int iLine, int iCol, int cLines, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumBSTR ^ % ppEnum);
public:
 int GetProximityExpressions(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer ^ pBuffer, int iLine, int iCol, int cLines, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumBSTR ^ &  ppEnum);
int GetProximityExpressions(Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer const & pBuffer, int iLine, int iCol, int cLines, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsEnumBSTR const & & ppEnum);
public int GetProximityExpressions (Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer pBuffer, int iLine, int iCol, int cLines, out Microsoft.VisualStudio.TextManager.Interop.IVsEnumBSTR ppEnum);
abstract member GetProximityExpressions : Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer * int * int * int * IVsEnumBSTR -> int
Public Function GetProximityExpressions (pBuffer As IVsTextBuffer, iLine As Integer, iCol As Integer, cLines As Integer, ByRef ppEnum As IVsEnumBSTR) As Integer

Parameters

pBuffer
IVsTextBuffer

[in] The IVsTextBuffer interface for the text buffer containing the expression.

iLine
Int32

[in] Number of the line containing the start of the expression.

iCol
Int32

[in] Column position within the line.

cLines
Int32

[in] Number of lines within the expression.

ppEnum
IVsEnumBSTR

[out] Returns an IVsEnumBSTR object that is used to enumerate BSTRs.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to