Engine.AttachResult 属性

获取一个指示附加的引擎是否失败的结果。

命名空间:  EnvDTE80
程序集:  EnvDTE80(在 EnvDTE80.dll 中)

语法

声明
ReadOnly Property AttachResult As Integer
    Get
int AttachResult { get; }
property int AttachResult {
    int get ();
}
abstract AttachResult : int
function get AttachResult () : int

属性值

类型:System.Int32
一个 Integer。

备注

AttachResult 返回最后尝试利用此引擎进行调试的错误代码。

示例

' Macro code.
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Imports Microsoft.VisualBasic.ControlChars

Public Module Module1

    Sub ShowDefaultEngines()
        Dim dbg As EnvDTE80.Debugger2
        dbg = DTE.Debugger

        dbg.HexDisplayMode = True

        Dim transport As EnvDTE80.Transport
        transport = dbg.Transports.Item("default")

        Dim engine As EnvDTE80.Engine
        Dim strEngineList As String
        For Each engine In transport.Engines
            strEngineList = strEngineList + engine.Name + ", " + _
            engine.ID + ", " + engine.AttachResult.ToString + NewLine
        Next
        MsgBox(strEngineList)
    End Sub
End Module

.NET Framework 安全性

请参见

参考

Engine 接口

EnvDTE80 命名空间

Engines