FileStream Methods
.NET Framework 2.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| BeginRead | Overridden. Begins an asynchronous read. |
| BeginWrite | Overridden. Begins an asynchronous write. |
| Close | Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. (Inherited from Stream.) |
| CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
| Dispose | Overloaded. |
| EndRead | Overridden. Waits for the pending asynchronous read to complete. |
| EndWrite | Overridden. Ends an asynchronous write, blocking until the I/O operation has completed. |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| Flush | Overridden. Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
| GetAccessControl | Gets a FileSecurity object that encapsulates the access control list (ACL) entries for the file described by the current FileStream object. |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
| Lock | Prevents other processes from changing the FileStream while permitting read access. |
| Read | Overridden. Reads a block of bytes from the stream and writes the data in a given buffer. |
| ReadByte | Overridden. Reads a byte from the file and advances the read position one byte. |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| Seek | Overridden. Sets the current position of this stream to the given value. |
| SetAccessControl | Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileStream object. |
| SetLength | Overridden. Sets the length of this stream to the given value. |
| Synchronized | Creates a thread-safe (synchronized) wrapper around the specified Stream object. (Inherited from Stream.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Unlock | Allows access by other processes to all or part of a file that was previously locked. |
| Write | Overridden. Writes a block of bytes to this stream using data from a buffer. |
| WriteByte | Overridden. Writes a byte to the current position in the file stream. |
| Name | Description | |
|---|---|---|
| CreateWaitHandle | Allocates a WaitHandle object. (Inherited from Stream.) |
| Dispose | Overloaded. Overridden. |
| Finalize | Overridden. Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the FileStream. |
| MemberwiseClone | Overloaded. (Inherited from MarshalByRefObject.) |