IVsDebugger.IsBreakpointOnName 方法

测试在一个名为位置设置断点。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function IsBreakpointOnName ( _
    ByRef guidLanguage As Guid, _
    pszCodeLocationText As String, _
    <OutAttribute> ByRef pfIsBreakpoint As Integer _
) As Integer
int IsBreakpointOnName(
    ref Guid guidLanguage,
    string pszCodeLocationText,
    out int pfIsBreakpoint
)

参数

  • guidLanguage
    类型:System.Guid%
    [in] ] 语言服务的 GUID 例如 SID_SVisualBasicLangService。
  • pszCodeLocationText
    类型:System.String
    [in] 字符串包含位置名称测试断点,如函数名。
  • pfIsBreakpoint
    类型:System.Int32%
    [out] 设置为 true ,如果设置断点;否则设置为 false。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsDebugger::IsBreakpointOnName(
   [in] REFGUID guidLanguage,
   [in] LPCOLESTR pszCodeLocationText,
   [out] BOOL* pfIsBreakpoint
);

.NET Framework 安全性

请参见

参考

IVsDebugger 接口

Microsoft.VisualStudio.Shell.Interop 命名空间