System.IO.Pipes.PipeStream.Write Method

Writes a block of bytes to the current stream using data from a buffer.

Syntax

[System.MonoTODO]
public override void Write (byte[] buffer, int offset, int count)

Parameters

buffer
The buffer that contains data to write to the pipe.
offset
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
count
The maximum number of bytes to write to the current stream.

Remarks

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).

Requirements

Namespace: System.IO.Pipes
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0