Microsoft.Networking.SerialPort.Read C# (CSharp) Method

Read() public method

public Read ( byte buffer, int bytesToRead ) : int
buffer byte
bytesToRead int
return int
        public int Read(byte[] buffer, int bytesToRead)
        {
            if (port == null)
            {
                return 0;
            }
            return port.Read(buffer, 0, bytesToRead);
        }