Port.Read Method

Reads a Boolean value at the port input.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

[MethodImplAttribute]
public bool Read ()

Return Value

The current value of the port (either 0 or 1).

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Port Class
Port Members
Microsoft.SPOT.Hardware Namespace