AddIn.DTE Property

Gets the top-level extensibility object.

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

Syntax

'Declaration
ReadOnly Property DTE As DTE
'Usage
Dim instance As AddIn 
Dim value As DTE 

value = instance.DTE
DTE DTE { get; }
property DTE^ DTE {
    DTE^ get ();
}
function get DTE () : DTE

Property Value

Type: EnvDTE.DTE
A DTE object.

Remarks

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

Examples

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

.NET Framework Security

See Also

Reference

AddIn Interface

AddIn Members

EnvDTE Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples