Proprietà Debugger3.DTE

Ottiene l'oggetto estensibilità di primo livello.

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

Sintassi

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

Valore proprietà

Tipo: EnvDTE.DTE
In DTE oggetto.

Note

in Visual Studio, DTE è la radice del modello di automazione, che altri modelli a oggetti spesso chiamano “applicazione„.

Esempi

Nell'esempio seguente viene illustrato come utilizzare DTE proprietà.

Per verificare questa proprietà:

  • Aprire il progetto di destinazione ed eseguire il componente aggiuntivo.
public static void DTE(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("DTE Property");
    owp.Activate();

    EnvDTE90.Debugger3 debugger = (EnvDTE90.Debugger3)dte.Debugger;
    EnvDTE.DTE DTEProp = debugger.DTE;
    owp.OutputString("Edition of the environment: " + DTEProp.Edition);
}

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Debugger3 Interfaccia

Overload DTE

Spazio dei nomi EnvDTE90