IDebugPortRequest2IDebugPortRequest2

此介面描述埠。This interface describes a port. 此描述可用來將埠新增至埠供應商。This description is used to add the port to a port supplier.

語法Syntax

IDebugPortRequest2 : IUnknown

實施者的注意事項Notes for Implementers

Visual Studio 通常會在從埠供應商取得 debug 埠的過程中,執行這個介面。Visual Studio typically implements this interface in the process of getting a debug port from a port supplier.

呼叫者注意事項Notes for Callers

此介面會傳遞至 AddPort 以建立 debug 埠。This interface is passed into AddPort to create a debug port. GetPortRequest 的呼叫會傳回這個介面,代表用來在第一個位置建立埠的要求。A call to GetPortRequest returns this interface, representing the request used to create the port in the first place.

依照 Vtable 順序的方法Methods in Vtable Order

下表顯示的方法 IDebugPortRequest2The following table shows the methods of IDebugPortRequest2.

方法Method 描述Description
GetPortNameGetPortName 取得要建立之埠的名稱。Gets the name of the port to create.

備註Remarks

Debug engine 通常不會與埠供應商互動,而且不會使用此介面。A debug engine typically does not interact with a port supplier and will have no use for this interface.

需求Requirements

標頭: msdbg。hHeader: msdbg.h

命名空間: VisualStudioNamespace: Microsoft.VisualStudio.Debugger.Interop

元件: Microsoft.VisualStudio.Debugger.Interop.dllAssembly: Microsoft.VisualStudio.Debugger.Interop.dll

另請參閱See also