Partager via


Engine.AttachResult, propriété

Obtient un résultat qui indique si un moteur attaché a échoué ou pas.

Espace de noms :  EnvDTE80
Assembly :  EnvDTE80 (dans EnvDTE80.dll)

Syntaxe

'Déclaration
ReadOnly Property AttachResult As Integer
    Get
int AttachResult { get; }
property int AttachResult {
    int get ();
}
abstract AttachResult : int
function get AttachResult () : int

Valeur de propriété

Type : System.Int32
Entier.

Notes

AttachResult retourne le code d'erreur de la dernière tentative de débogage effectuée à l'aide ce moteur.

Exemples

' 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

Sécurité .NET Framework

Voir aussi

Référence

Engine Interface

EnvDTE80, espace de noms

Engines