Export (0) Print
Expand All

AddIn.DTE Property

Gets the top-level extensibility object.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

DTE DTE { get; }

Property Value

Type: EnvDTE.DTE
A DTE object.

In Visual Studio, the DTE object is the root of the automation model, which other object models often call "Application".

public void AddinDTEExample(AddIn addIn)
{
   // Show the full path name to the
   // application hosting this Add-in.
   MessageBox.Show(addIn.DTE.FullName);
}

Show:
© 2014 Microsoft