If you use SerialPort class from System.IO.Ports:
http://msdn.microsoft.com/de-de/library/ms143551%28v=vs.100%29.aspx[
^]
public void Write(
byte[] buffer,
int offset,
int count
)
buffer
Type: System.Byte[]
The byte array that contains the data to write to the port.
offset
Type: System.Int32
The zero-based byte offset in the buffer parameter at which to begin copying bytes to the port.
count
Type: System.Int32
The number of bytes to write.