SolutionConfiguration2.DTE Property

Definition

Gets the top-level extensibility object.

C++/CX
public:
 property EnvDTE::DTE ^ DTE { EnvDTE::DTE ^ get(); };

Property Value

DTE

A DTE object.

Implements

DTE
Attributes

Examples

This example displays the active project's name, obtained through the DTE object, for the first item. Open a project in the Visual Studio integrated development environment (IDE) before running this example.

VB
Imports EnvDTE  
Imports EnvDTE80  
Sub SolutionConfigurationDTEExample(ByVal dte As DTE2)  
    Try  
        Dim builder As SolutionBuild = _  
        _applicationObject.Solution.SolutionBuild  
        Dim config As SolutionConfiguration2  
            config = CType(builder.SolutionConfigurations.Item(1) _  
        , SolutionConfiguration2)  
        MsgBox("The active solution project, obtained through the  _  
        DTE object, is: "  _  
        & config.DTE.ActiveSolutionProjects.ToString())  
    Catch ex As System.Exception  
        MsgBox(ex.ToString)  
    End Try  
End Sub  

Remarks

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

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022