Partager via


Debugger3.Parent, propriété

Obtient l'objet parent immédiat de l'objet Debugger3 (DTE2).

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

Syntaxe

'Déclaration
ReadOnly Property Parent As DTE
    Get
DTE Parent { get; }
property DTE^ Parent {
    DTE^ get ();
}
abstract Parent : DTE
function get Parent () : DTE

Valeur de propriété

Type : EnvDTE.DTE
un objet DTE.

Implémentations

Debugger2.Parent

Notes

La propriété Parent retourne le parent immédiat à l'objet.

Exemples

L'exemple suivant montre comment utiliser la propriété Parent.

Pour tester cette propriété :

  • Ouvrez le projet cible et exécutez le complément.
public static void Parent(EnvDTE80.DTE2 dte)
{
    // Setup debug Output window.
    Window w = 
    (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
    w.Visible = true;
    OutputWindow ow = (OutputWindow)w.Object;
    OutputWindowPane owp = ow.OutputWindowPanes.Add("Parent Property 
    Test");
    owp.Activate();

    EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
    owp.OutputString("The name of the debugger parent: " + 
                     debugger.Parent.Name);
}

Sécurité .NET Framework

Voir aussi

Référence

Debugger3 Interface

Parent, surcharge

EnvDTE90, espace de noms