共用方式為


Transport.Parent 屬性

取得 Transport 物件的直接上層父物件,在這種情況下,它也就是 Debugger2 物件。

命名空間:  EnvDTE80
組件:  EnvDTE80 (在 EnvDTE80.dll 中)

語法

'宣告
ReadOnly Property Parent As Debugger2
Debugger2 Parent { get; }
property Debugger2^ Parent {
    Debugger2^ get ();
}
abstract Parent : Debugger2
function get Parent () : Debugger2

屬性值

型別:EnvDTE80.Debugger2
Debugger2 物件。

範例

' Macro code.
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
        Next
        MsgBox(strEngineList)
    End Sub
End Module

.NET Framework 安全性

請參閱

參考

Transport 介面

EnvDTE80 命名空間