IEnumDebugPorts2

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

This interface enumerates the ports of a machine or port supplier.

Syntax

IEnumDebugPorts2 : IUnknown

Notes for Implementers

A custom port supplier implements this interface to represent a list of ports created by the supplier. Visual Studio implements this interface in support of its own port supplier.

Notes for Callers

Call EnumPorts to obtain this interface representing a list of ports created by the port supplier. Call EnumPersistedPorts to obtain this interface representing a list of ports that were saved to disk.

Methods in Vtable Order

The following table shows the methods of IEnumDebugPorts2.

Method Description
Next Retrieves a specified number of ports in an enumeration sequence.
Skip Skips a specified number of ports in an enumeration sequence.
Reset Resets an enumeration sequence to the beginning.
Clone Creates an enumerator that contains the same enumeration state as the current enumerator.
GetCount Gets the number of ports in an enumerator.

Remarks

Visual Studio uses this interface to help populate a list of ports used for attaching to processes.

A debug engine typically does not use this interface.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also