Compartir a través de


Engine.AttachResult Property

Definition

Gets a result indicating whether an attached engine failed or not.

public:
 property int AttachResult { int get(); };
public:
 property int AttachResult { int get(); };
[System.Runtime.InteropServices.DispId(102)]
public int AttachResult { [System.Runtime.InteropServices.DispId(102)] get; }
[<System.Runtime.InteropServices.DispId(102)>]
[<get: System.Runtime.InteropServices.DispId(102)>]
member this.AttachResult : int
Public ReadOnly Property AttachResult As Integer

Property Value

An integer.

Attributes

Examples

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  

Remarks

AttachResult returns the error code for the last attempt made to debug with this engine.

Applies to