Udostępnij za pośrednictwem


Debugger2.Transports Property

Definition

Gets a collection of supported debugging transports.

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

Property Value

A Transports collection.

Attributes

Examples

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

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

Remarks

Transport(1) is always the "Default" transport. This transport is the one used for local debugging, but it can also be used for remote debugging if the remote computer has been properly configured.

Applies to