Compartir a través de


Transport.Collection Property

Gets the Transports collection to which this Transport object belongs (if any).

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

Syntax

'Declaration
ReadOnly Property Collection As Transports
Transports Collection { get; }
property Transports^ Collection {
    Transports^ get ();
}
abstract Collection : Transports with get
function get Collection () : Transports

Property Value

Type: EnvDTE80.Transports
A Transports collection.

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

Transport