Proprietà Engine.AttachResult

Ottiene un risultato che indica se un modulo associato non superato o meno.

Spazio dei nomi:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Sintassi

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

Valore proprietà

Tipo: System.Int32
un Integer.

Note

AttachResult restituisce il codice di errore per l'ultimo tentativo fatto per il debug con questo modulo.

Esempi

' 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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Engine Interfaccia

Spazio dei nomi EnvDTE80

Engines