다음을 통해 공유


IDebugPortSupplier2::RemovePort

Note

This article applies to Visual Studio 2015. 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

IDebugPortSupplier2
IDebugPort2