title: How do you read the serial port with windows 10 core
body: <p>Using Python on the Raspberry PI, I use similar code to what is shown below to read data from the serial port:</p>
  <pre><code>baud = 9600                 # baud rate
  port = '/dev/ttyACM0'       # serial URF port on this computer
  
  ser = serial.Serial(port, baud)
  ser.timeout = 0 
  var message = ser.read(9);
  </code></pre>
  <p>Essentially I just want to be able to read a message of the serial port and perform an action based on that message.</p>
  <p>How can this be achieved using Windows 10 Core and c#, can anyone point me in the right direction or provide a code sample?</p>