生成接近程度表达式。
命名空间: 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] 返回用于枚举 BSTR 的 IVsEnumBSTR 对象。
返回值
类型: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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。