Share via


GetSerialPortsCount Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the count of serial ports associated with this HardwareProvider.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Overridable Function GetSerialPortsCount As Integer
public virtual int GetSerialPortsCount()
public:
virtual int GetSerialPortsCount()
abstract GetSerialPortsCount : unit -> int 
override GetSerialPortsCount : unit -> int 
public function GetSerialPortsCount() : int

Return Value

Type: System. . :: . .Int32
The count of serial ports.

.NET Framework Security

See Also

Reference

HardwareProvider Class

Microsoft.SPOT.Hardware Namespace