IDebugPort2::GetPortRequest

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

Gets the description of a port that was previously used to create the port (if available).

Syntax

HRESULT GetPortRequest( 
   IDebugPortRequest2** ppRequest
);
int GetPortRequest( 
   out IDebugPortRequest2 ppRequest
);

Parameters

ppRequest
[out] Returns an IDebugPortRequest2 object representing the request that was used to create the port.

Return Value

If successful, returns S_OK; otherwise, returns an error code. Returns E_PORT_NO_REQUEST if a port was not created using an IDebugPortRequest2 port request.

See also