Lire en anglais

Partager via


Transports Interface

Definition

A collection of Transport objects.

C++
public interface class Transports : System::Collections::IEnumerable
Attributes
Implements

Examples

VB
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  

Properties

Count

Gets a value indicating the number of objects in the Transports collection.

DTE

Gets the top-level extensibility object.

Parent

Gets the immediate parent object of a Transports collection, in this case the Debugger object.

Methods

GetEnumerator()

Gets an enumeration for items in a collection.

Item(Object)

Gets an indexed member of a Transports collection.

Applies to

Produit Versions
Visual Studio SDK 2015, 2017, 2019, 2022