NetworkStream Members
The following tables list the members exposed by the NetworkStream type.
Public Constructors
Name | Description | |
---|---|---|
NetworkStream | Overloaded. Creates a new instance of the NetworkStream class. |
Protected Fields
Name | Description | |
---|---|---|
_disposed | Indicates whether the NetworkStream has been disposed. | |
_remoteEndPoint | Contains the stream's remote endpoint. |
Public Properties
Name | Description | |
---|---|---|
CanRead | Gets a value that indicates whether the NetworkStream supports reading. | |
CanSeek | Gets a value that indicates whether the stream supports seeking. | |
CanTimeout | Gets a value that determines whether the current stream can time out. | |
CanWrite | Gets a value indicating whether the current stream supports writing. | |
DataAvailable | Gets a Boolean value indicating whether the stream has available data. | |
Length | Gets the length in bytes of the stream. | |
Position | Gets or sets the position within the current stream | |
ReadTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. | |
WriteTimeout | Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. |
Public Methods
Name | Description | |
---|---|---|
Close | Closes the NetworkStream after waiting the specified time to allow data to be sent. | |
Close | (Inherited from Stream.) | |
Dispose | (Inherited from Stream.) | |
Equals | (Inherited from Object.) | |
Flush | Flushes data from the stream. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Read | Reads data from the NetworkStream. | |
ReadByte | (Inherited from Stream.) | |
ReferenceEquals | (Inherited from Object.) | |
Seek | Sets the current position of the stream to the given value. | |
SetLength | Sets the length of the stream. | |
ToString | (Inherited from Object.) | |
Write | Writes data to the NetworkStream. | |
WriteByte | (Inherited from Stream.) |
Protected Methods
Name | Description | |
---|---|---|
Dispose | Releases the unmanaged resources used by the NetworkStream and optionally releases the managed resources. | |
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |