Stream Members
Public Fields
![]() Null Supported by the .NET Compact Framework. | A Stream with no backing store. |
Public Properties
CanRead Supported by the .NET Compact Framework. | When overridden in a derived class, gets a value indicating whether the current stream supports reading. |
CanSeek Supported by the .NET Compact Framework. | When overridden in a derived class, gets a value indicating whether the current stream supports seeking. |
CanWrite Supported by the .NET Compact Framework. | When overridden in a derived class, gets a value indicating whether the current stream supports writing. |
Length Supported by the .NET Compact Framework. | When overridden in a derived class, gets the length in bytes of the stream. |
Position Supported by the .NET Compact Framework. | When overridden in a derived class, gets or sets the position within the current stream. |
Public Methods
BeginRead Supported by the .NET Compact Framework. | Begins an asynchronous read operation. |
BeginWrite Supported by the .NET Compact Framework. | Begins an asynchronous write operation. |
Close Supported by the .NET Compact Framework. | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
EndRead Supported by the .NET Compact Framework. | Waits for the pending asynchronous read to complete. |
EndWrite Supported by the .NET Compact Framework. | Ends an asynchronous write operation. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
Flush Supported by the .NET Compact Framework. | When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Read Supported by the .NET Compact Framework. | When overridden in a derived class, reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
ReadByte Supported by the .NET Compact Framework. | Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. |
Seek Supported by the .NET Compact Framework. | When overridden in a derived class, sets the position within the current stream. |
SetLength Supported by the .NET Compact Framework. | When overridden in a derived class, sets the length of the current stream. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
Write Supported by the .NET Compact Framework. | When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |
WriteByte Supported by the .NET Compact Framework. | Writes a byte to the current position in the stream and advances the position within the stream by one byte. |
Protected Constructors
Stream Constructor Supported by the .NET Compact Framework. | Initializes a new instance of the Stream class. |
Protected Methods
CreateWaitHandle Supported by the .NET Compact Framework. | Allocates a WaitHandle object. |
Finalize (inherited from Object)
Supported by the .NET Compact Framework. | Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |

