Transport.DTE Property

Gets the top-level extensibility object.

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

Syntax

'Declaration
ReadOnly Property DTE As DTE
DTE DTE { get; }
property DTE^ DTE {
    DTE^ get ();
}
abstract DTE : DTE
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

' Macro code.
Imports EnvDTE
Imports EnvDTE80
Imports System.Diagnostics
Imports Microsoft.VisualBasic.ControlChars

Public Module Module1

    Sub ShowTransports()
        Dim dbg As EnvDTE80.Debugger2
        dbg = DTE.Debugger
        Dim strTransportList As String
        Dim transport As EnvDTE80.Transport

        For Each transport In dbg.Transports
            strTransportList = strTransportList + transport.Name & ", _
            " & transport.ID & VbCr
        Next
        MsgBox(strTransportList)
    End Sub
End Module

.NET Framework Security

See Also

Reference

Transport Interface

EnvDTE80 Namespace

Transports