IDebugPortSupplier2::GetPort
Applies to: Visual Studio Visual 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
Gets a port from a port supplier.
Syntax
HRESULT GetPort(
REFGUID guidPort,
IDebugPort2** ppPort
);
int GetPort(
ref Guid guidPort,
out IDebugPort2 ppPort
);
Parameters
guidPort
[in] Globally unique identifier (GUID) of the port.
ppPort
[out] Returns an IDebugPort2 object that represents the port.
Return Value
If successful, returns S_OK
; otherwise, returns an error code. Returns E_PORTSUPPLIER_NO_PORT
if no port exists with the given identifier.