Share via


MFDeploy.EnumPorts Method

Enumerates (lists) the ports available for .NET Micro Framework deployment.

Namespace: Microsoft.NetMicroFramework.Tools.MFDeployTool.Engine
Assembly: (in )

Syntax

 public System.Collections.Generic.List<MFPortDefinition> EnumPorts (
         params TransportType[] types
)

Parameters

  • types
    The types of ports to be listed, using the TransportType enumeration.

Return Value

A list of the available ports, representing transports for possible .NET Micro Framework devices.

Remarks

If called with a null parameter list, EnumPorts returns a list of all types of ports. To receive a list only of specific types of ports, pass one or more TransportTypes, for example, EnumPorts(TransportType.Serial, TransportType.USB).

Since serial ports do not support device discovery, all such ports are always included in the return list if the serial port transport type was requested.

Version Information

Available in MFDeploy version 1.0

See Also

MFPortDefinition Class
TransportType Enumeration