BuildDependencies.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 BuildDependencies
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 Example(DTE2 dte)
{
try
{
BuildDependencies bldDepends;
BuildDependency bldDependency = null;
// Get the BuildDependencies in open solution.
bldDepends = dte.Solution.SolutionBuild.BuildDependencies;
if (bldDepends.Count > 0) // assign the BuildDependency
bldDependency = bldDepends.Item(bldDepends.Count);
// Show the BuildDependency returned by the Item property.
MessageBox.Show(bldDependency.Project.Name);
// Show the BuildDependencies top-level object.
MessageBox.Show(bldDepends.DTE.Name);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples