FileStream Methods
.NET Framework 3.5
The FileStream type exposes the following members.
| Name | Description | |
|---|---|---|
|
BeginRead | Overloaded. |
|
BeginWrite | Overloaded. |
|
Close | Overloaded. |
|
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.) |
|
CreateWaitHandle | Obsolete. Allocates a WaitHandle object. (Inherited from Stream.) |
|
Dispose | Overloaded. |
|
EndRead | Overloaded. |
|
EndWrite | Overloaded. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the FileStream. (Overrides Object.Finalize().) |
|
Flush | Clears all buffers for this stream and causes any buffered data to be written to the file system. (Overrides Stream.Flush().) |
|
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. (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. |
|
MemberwiseClone | Overloaded. |
|
Read | Reads a block of bytes from the stream and writes the data in a given buffer. (Overrides Stream.Read(Byte[], Int32, Int32).) |
|
ReadByte | Reads a byte from the file and advances the read position one byte. (Overrides Stream.ReadByte().) |
|
Seek | Sets the current position of this stream to the given value. (Overrides Stream.Seek(Int64, SeekOrigin).) |
|
SetAccessControl | Applies access control list (ACL) entries described by a FileSecurity object to the file described by the current FileStream object. |
|
SetLength | Sets the length of this stream to the given value. (Overrides Stream.SetLength(Int64).) |
|
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 | Writes a block of bytes to this stream using data from a buffer. (Overrides Stream.Write(Byte[], Int32, Int32).) |
|
WriteByte | Writes a byte to the current position in the file stream. (Overrides Stream.WriteByte(Byte).) |
| Name | Description | |
|---|---|---|
|
IDisposable.Dispose | For a description of this member, see IDisposable.Dispose. (Inherited from Stream.) |