Transport.DTE Property
Gets the top-level extensibility object.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
ReadOnly Property DTE As DTE
'Usage
Dim instance As Transport
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
' 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
- 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.