IVsLanguageDebugInfo2.QueryCommonLanguageBlock 方法
确定指定的位置是否在异常处理程序的具有指定的类型内包含块。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function QueryCommonLanguageBlock ( _
pBuffer As IVsTextBuffer, _
iLine As Integer, _
iCol As Integer, _
dwFlag As UInteger, _
<OutAttribute> ByRef pfInBlock As Integer _
) As Integer
int QueryCommonLanguageBlock(
IVsTextBuffer pBuffer,
int iLine,
int iCol,
uint dwFlag,
out int pfInBlock
)
int QueryCommonLanguageBlock(
[InAttribute] IVsTextBuffer^ pBuffer,
[InAttribute] int iLine,
[InAttribute] int iCol,
[InAttribute] unsigned int dwFlag,
[OutAttribute] int% pfInBlock
)
abstract QueryCommonLanguageBlock :
pBuffer:IVsTextBuffer *
iLine:int *
iCol:int *
dwFlag:uint32 *
pfInBlock:int byref -> int
function QueryCommonLanguageBlock(
pBuffer : IVsTextBuffer,
iLine : int,
iCol : int,
dwFlag : uint,
pfInBlock : int
) : int
参数
pBuffer
类型:Microsoft.VisualStudio.TextManager.Interop.IVsTextBuffer[in] 包含文本的 IVsTextBuffer 检查。
iLine
类型:Int32[in] 检查的行。
iCol
类型:Int32[in] 要检查的列。
dwFlag
类型:UInt32[in] 从 COMMONLANGUAGEBLOCK 枚举指定的值哪个常见查找。
pfInBlock
类型:Int32%[out] 返回非零,则 iLine 和 iCol 是指定的公共语言块中;否则,返回零。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsLanguageDebugInfo2::QueryCommonLanguageBlock(
[in] IVsTextBuffer *pBuffer,
[in] long iLine,
[in] long iCol,
[in] DWORD dwFlag,
[out] BOOL *pfInBlock
);
异常的处理程序常见个基于语言服务实现的语言,但通常包括 try 块,并 catch 块。 某些语言支持所执行的其他块如果发生异常的;例如, C# 线 finally 块。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。