共用方式為


IVsLanguageDebugInfo.GetProximityExpressions 方法

會產生附近的運算式。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function GetProximityExpressions ( _
    pBuffer As IVsTextBuffer, _
    iLine As Integer, _
    iCol As Integer, _
    cLines As Integer, _
    <OutAttribute> ByRef ppEnum As IVsEnumBSTR _
) As Integer
int GetProximityExpressions(
    IVsTextBuffer pBuffer,
    int iLine,
    int iCol,
    int cLines,
    out IVsEnumBSTR ppEnum
)
int GetProximityExpressions(
    [InAttribute] IVsTextBuffer^ pBuffer, 
    [InAttribute] int iLine, 
    [InAttribute] int iCol, 
    [InAttribute] int cLines, 
    [OutAttribute] IVsEnumBSTR^% ppEnum
)
abstract GetProximityExpressions : 
        pBuffer:IVsTextBuffer * 
        iLine:int * 
        iCol:int * 
        cLines:int * 
        ppEnum:IVsEnumBSTR byref -> int
function GetProximityExpressions(
    pBuffer : IVsTextBuffer, 
    iLine : int, 
    iCol : int, 
    cLines : int, 
    ppEnum : IVsEnumBSTR
) : int

參數

  • iLine
    類型:Int32

    [in]包含運算式的開頭的行號。

  • iCol
    類型:Int32

    [in]資料行的行內的位置。

  • cLines
    類型:Int32

    [in]在運算式之中的行數。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsLanguageDebugInfo::GetProximityExpressions(
   [in] IVsTextBuffer *pBuffer, 
   [in] long iLine, 
   [in] long iCol, 
   [in] long cLines, 
   [out] IVsEnumBSTR **ppEnum
);

實作這個方法來提供資訊來填入所需的語言服務所自動變數偵錯] 視窗。 當偵錯工具呼叫這個方法時,偵錯工具要求的任何參數及一段開頭所識別的開始位置的行中的變數名稱iLine和iCol指定的文字緩衝區中的參數。 超過此時間點的行數的範圍由指定cLines參數。

.NET Framework 安全性

請參閱

參考

IVsLanguageDebugInfo 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間