Condividi tramite


Proprietà Debugger3.Parent

Ottiene l'oggetto padre diretto dell'oggetto Debugger3 (DTE2).

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

Sintassi

'Dichiarazione
ReadOnly Property Parent As DTE
DTE Parent { get; }
property DTE^ Parent {
    DTE^ get ();
}
abstract Parent : DTE with get
function get Parent () : DTE

Valore proprietà

Tipo: DTE
Oggetto DTE.

Note

La proprietà Parent restituisce il primo oggetto padre all'oggetto.

Esempi

Nell'esempio riportato di seguito viene mostrato come utilizzare la proprietà Parent.

Per verificare la proprietà:

  • Aprire il progetto di destinazione ed eseguire il componente aggiuntivo.
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);
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Debugger3 Interfaccia

Spazio dei nomi EnvDTE90