Documents::DTE Property
Visual Studio 2015
Gets the top-level extensibility object.
Assembly: EnvDTE (in EnvDTE.dll)
In Visual Studio, the DTE object is the root of the automation model, which other object models often call "Application."
[C#]
public void CodeExample(DTE2 dte)
{
try
{
Documents docs;
docs = dte.Documents;
if (docs.DTE.Equals(dte))
MessageBox.Show("These two objects do equal each other.");
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Show: