DkmTransportConnection.ExtractFromDeployConnection Method

Definition

Obtains the DkmTransportConnection object which backs the deploy connection. This can be used to bridge from the debugger deploy API, to the debugger engine (Dkm) APIs. As an example, this can be used to send DkmCustomMessages.

The caller must still hold onto deployConnection to avoid the underlying DkmTransportConnection from being disposed. Note that, by default, concord components will be unloaded during stop debugging. This behavior can be overwritten by setting 'StayLoadedForDeployConnection="true"' in the component's .vsdconfigxml file. This is useful if the caller wants to extract the deploy connection in order to send custom messages and wants to do so after the debugger session ended.

public:
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmTransportConnection ^ ExtractFromDeployConnection(Microsoft::VisualStudio::Debugger::Interop::IVsDebuggerDeployConnection ^ deployConnection);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection ExtractFromDeployConnection (Microsoft.VisualStudio.Debugger.Interop.IVsDebuggerDeployConnection deployConnection);
static member ExtractFromDeployConnection : Microsoft.VisualStudio.Debugger.Interop.IVsDebuggerDeployConnection -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmTransportConnection
Public Shared Function ExtractFromDeployConnection (deployConnection As IVsDebuggerDeployConnection) As DkmTransportConnection

Parameters

deployConnection
IVsDebuggerDeployConnection

AD7 default port object

Returns

DkmTransportConnection which backs the AD7 object.

Applies to