Jaa


IDebugPortSupplier2::RemovePort

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Removes a port.

Syntax

HRESULT RemovePort( 
   IDebugPort2* pPort
);
int RemovePort( 
   IDebugPort2 pPort
);

Parameters

pPort
[in] An IDebugPort2 object that represents the port to be removed.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

This method removes the port from the port supplier's internal list of active ports.

See also