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
參數
pBuffer
類型:Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[in]IVsTextBuffer包含運算式文字緩衝區的介面。
iLine
類型:Int32[in]包含運算式的開頭的行號。
iCol
類型:Int32[in]資料行的行內的位置。
cLines
類型:Int32[in]在運算式之中的行數。
ppEnum
類型:Microsoft.VisualStudio.TextManager.Interop.IVsEnumBSTR%[] out傳回IVsEnumBSTR用來列舉 BSTRs 的物件。
傳回值
類型: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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。