title: PipeTransmissionMode.Message: How do .NET named pipes distinguish between messages?
body: <p>Can somebody clarify the meaning of <a href="http://msdn.microsoft.com/en-us/library/system.io.pipes.pipetransmissionmode.aspx" rel="noreferrer"><code>PipeTransmissionMode.Message</code></a> in .NET?</p>
  
  <p>How does .NET distinguish one message passed through the pipe from another?</p>
  
  <ul>
  <li>Can I serialize an object using a <a href="http://msdn.microsoft.com/en-us/library/system.runtime.serialization.formatters.binary.binaryformatter.aspx" rel="noreferrer"><code>BinaryFormatter</code></a> and then pass it through the pipe as a message? </li>
  <li>Or are only string messages allowed when the pipe is in <code>PipeTransmissionMode.Message</code> mode?</li>
  </ul>