Share via


IDebugPortSupplier3::EnumPersistedPorts

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

This method retrieves an object that allows enumeration of the list of persisted ports.

Syntax

HRESULT EnumPersistedPorts(  
   BSTR_ARRAY         PortNames,  
   IEnumDebugPorts2** ppEnum  
);  
int EnumPersistedPorts(  
   BSTR_ARRAY           PortNames,  
   out IEnumDebugPorts2 ppEnum  
);  

Parameters

PortNames
[in] A BSTR_ARRAY structure that contains a list of port names to find and return among the persisted ports. Only those persisted ports with these names will be returned.

ppEnum
[out] An object that implements the IEnumDebugPorts2 interface.

Return Value

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

Remarks

Persisted ports are loaded when a port supplier is instantiated, and saved when the port supplier is destroyed.

See Also

IDebugPortSupplier3
IEnumDebugPorts2
BSTR_ARRAY