Share via


DkmTransportConnection.ExtractFromPort(IDebugPort2) Method

Definition

Obtains the DkmTransportConnection object which backs this port object. This will fail in remote debugging scenarios if the port is not currently connected, and reconnect was unsuccessful. This API will only function correctly from the main thread of Visual Studio.

public:
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ ExtractFromPort(Microsoft::VisualStudio::Debugger::Interop::IDebugPort2 ^ portObject);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection ExtractFromPort (Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 portObject);
static member ExtractFromPort : Microsoft.VisualStudio.Debugger.Interop.IDebugPort2 -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection
Public Shared Function ExtractFromPort (portObject As IDebugPort2) As DkmTransportConnection

Parameters

portObject
IDebugPort2

AD7 default port object

Returns

DkmTransportConnection which backs the AD7 object.

Applies to