共用方式為


Engine.AttachResult 屬性

取得結果,指出附加的引擎是否失敗。

命名空間:  EnvDTE80
組件:  EnvDTE80 (在 EnvDTE80.dll 中)

語法

'宣告
ReadOnly Property AttachResult As Integer
int AttachResult { get; }
property int AttachResult {
    int get ();
}
abstract AttachResult : int
function get AttachResult () : int

屬性值

型別:System.Int32
整數。

備註

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