Use the PipeStream.CanWrite property to determine whether the current System.IO.Pipes.PipeStream object supports write operations.
Calling the PipeStream.Write(Byte[], int, int) method blocks until count bytes are read or the end of the stream is reached. For asynchronous read operations, see PipeStream.BeginWrite(Byte[], int, int, AsyncCallback, object) and PipeStream.EndWrite(IAsyncResult).