NetworkStream.Write Method (Byte, Int32, Int32)
Writes data to the NetworkStream.
Assembly: System (in System.dll)
The buffer parameter is null.
The offset parameter is less than 0.
The offset parameter is greater than the length of buffer.
The size parameter is less than 0.
The size parameter is greater than the length of buffer minus the value of the offset parameter.
There was a failure while writing to the network.
An error occurred when accessing the socket. See the Remarks section for more information.
The NetworkStream is closed.
There was a failure reading from the network.
The SocketException is thrown. If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code, and refer to the Windows Sockets version 2 API error code documentation in MSDN for a detailed description of the error.method starts at the specified offset and sends size bytes from the contents of buffer to the network. The method blocks until the requested number of bytes is sent or a
Available since 1.1