NetworkStream Members

The following tables list the members exposed by the NetworkStream type.

Public Constructors

Name Description
Public Method NetworkStream Overloaded. Creates a new instance of the NetworkStream class.

Public Properties

Name Description
Public Property CanRead Gets a flag that indicates whether the NetworkStream supports reading.
Public Property CanSeek Gets a value that indicates whether the stream supports seeking. Not currently supported.
Public Property CanTimeout Indicates whether timeout properties are usable for NetworkStream.
Public Property CanWrite Gets a flag that indicates whether the NetworkStream supports writing.
Public Property DataAvailable Gets a value that indicates whether data is available on the NetworkStream to be read.
Public Property Length Gets the length of the data available on the stream. Not supported.
Public Property Position Gets or sets the current position in the stream. Not supported.

Protected Properties

Name Description
Protected Property Readable Gets or sets a value that indicates whether the NetworkStream can be read.
Protected Property Socket Gets the underlying Socket.
Protected Property Writeable Gets or sets a value that indicates whether the NetworkStream is writable.

Public Methods

Name Description
Public Method Close Overloaded. Closes the NetworkStream after waiting the specified time to allow data to be sent.
Public Method Dispose Overloaded. Releases the unmanaged resources used by the NetworkStream and optionally releases the managed resources.
Public Method Flush Flushes data from the stream.
Public Method Read Reads data from the NetworkStream.
Public Method Seek Sets the current position of the stream to the given value. Not supported.
Public Method SetLength Sets the length of the stream. Not supported.
Public Method Write Writes data to the NetworkStream.

See Also

Reference

NetworkStream Class
System.Ext.Net.Sockets Namespace