Mono Class Library: System.Net.Sockets NamespaceSystem.Net.Sockets.NetworkStream Class |
See Also: NetworkStream Members
System.Object
System.MarshalByRefObject
System.IO.Stream
System.Net.Sockets.NetworkStream
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
The System.Net.Sockets.NetworkStream class allows network data to be read and written in the same manner as the System.IO.Stream class.
This class supports simultaneous synchronous and asynchronous access to the network data. Random access is not supported and thus the NetworkStream.CanSeek property always returns false.
The following properties and methods inherited from the System.IO.Stream class are not supported and throw a NotSupportedException exception when accessed:
- NetworkStream.Length
- NetworkStream.Position
- NetworkStream.Seek(long, System.IO.SeekOrigin)
- NetworkStream.SetLength(long)
The NetworkStream.Flush method is reserved for future use but does not throw an exception.
[Edit]
Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0