Transport.ID Property


Gets the ID of the Transport as a GUID.

[get: System.Runtime.InteropServices.DispId(101)]
public string ID { get; }
Property Value

A string representing the transport ID in GUID form.


Imports EnvDTE  
Imports EnvDTE80  
Imports System.Diagnostics  
Imports Microsoft.VisualBasic.ControlChars  

Public Module Module1  

    Sub ShowDefaultEngines()  
        Dim dbg As EnvDTE80.Debugger2  
        dbg = DTE.Debugger  
        dbg.HexDisplayMode = True  
        Dim transport As EnvDTE80.Transport  
        transport = dbg.Transports.Item("default")  
        Dim engine As EnvDTE80.Engine  
        Dim strEngineList As String  
        For Each engine In transport.Engines  
            strEngineList = strEngineList + engine.Name + ", " + _  
            engine.ID + ", " + engine.AttachResult.ToString + NewLine  
    End Sub  
End Module  

Applies to