Compartilhar via


Transport.Collection Property

Definition

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

public:
 property EnvDTE80::Transports ^ Collection { EnvDTE80::Transports ^ get(); };
[System.Runtime.InteropServices.DispId(202)]
public EnvDTE80.Transports Collection { [System.Runtime.InteropServices.DispId(202)] get; }
[<System.Runtime.InteropServices.DispId(202)>]
[<get: System.Runtime.InteropServices.DispId(202)>]
member this.Collection : EnvDTE80.Transports
Public ReadOnly Property Collection As Transports

Property Value

A Transports collection.

Attributes

Examples

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  

Applies to