IVsDebugger2.GetEngineName 方法

对于调试引擎的 GUID,返回引擎的名称。使用 EnumDebugEngines 的此方法检索任何有效的调试引擎的名称。

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

语法

声明
Function GetEngineName ( _
    ByRef guidEngine As Guid, _
    <OutAttribute> ByRef pbstrName As String _
) As Integer
int GetEngineName(
    ref Guid guidEngine,
    out string pbstrName
)

参数

  • guidEngine
    类型:System.Guid%
    [in] 调试引擎的 GUID。
  • pbstrName
    类型:System.String%
    [out] 包含调试引擎的名称的字符串。

返回值

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

备注

COM 签名

从 vsshell80.idl:

HRESULT IVsDebugger2::GetEngineName(
   [in] REFGUID guidEngine,
   [out] BSTR *pbstrName
);

.NET Framework 安全性

请参见

参考

IVsDebugger2 接口

Microsoft.VisualStudio.Shell.Interop 命名空间