Share via


SerialPort.Read Method

Reads a number of bytes from the SerialPort input buffer and writes those bytes into a byte array at the specified offset.

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

Syntax

[MethodImplAttribute(InternalCall)]
public int Read (
         byte[] buffer,
         int offset,
         int count
)

Parameters

  • buffer
    The byte array to write the input to.
  • offset
    The offset in the buffer array to begin writing
  • count
    The number of bytes to read.

Return Value

The number of bytes read.

Version Information

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

See Also

Reference

SerialPort Class
SerialPort Members
System.IO.Ports Namespace