Mono Class Library: System.Net.Sockets.NetworkStream Overview | MembersSystem.Net.Sockets.NetworkStream.Write Method |
Writes data from a specific area of a data buffer to the current instance. [Edit]
|
Type Reason ArgumentNullException buffer is null. [Edit] ArgumentOutOfRangeException offset < 0.
-or-
offset > buffer.Length.
-or-
size < 0.
-or-
size > buffer.Length - offset.
[Edit]System.IO.IOException Note: This method catches all exceptions thrown by the Socket.Send(Byte[], int, SocketFlags) method.[Edit]ObjectDisposedException The current instance has been disposed. [Edit]
When no buffer space is available within the underlying protocol, this method blocks unless the socket is in non-blocking mode.
Note:[Edit]This method overrides System.IO.Stream.Write(Byte[], int, int).
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0