Mono Class Library: Overview

System.IO.FileStream: Members

The members of System.IO.FileStream are listed below.

See Also: Inherited members from System.IO.Stream

Public Constructors

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Constructs and initializes a new instance of the System.IO.FileStream class with the specified path and creation mode.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Constructs and initializes a new instance of the System.IO.FileStream class with the specified path, creation mode, and access type.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Constructs and initializes a new instance of the System.IO.FileStream class with the specified path, creation mode, access type, and sharing permission.
Documentation for this section has not yet been entered.
Constructs and initializes a new instance of the System.IO.FileStream class.
Constructs and initializes a new instance of the System.IO.FileStream class.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Public Properties

[read-only]
override
CanReadbool. Gets a bool value indicating whether the current stream supports reading.
[read-only]
override
CanSeekbool. Gets a bool value indicating whether the current stream supports seeking.
[read-only]
override
CanWritebool. Gets a bool value indicating whether the current stream supports writing.
[read-only]
HandleIntPtr. Documentation for this section has not yet been entered.
[read-only]
IsAsyncbool. Gets a bool value indicating whether the current instance was opened asynchronously or synchronously.
[read-only]
override
Lengthlong. Gets the length in bytes of the stream.
[read-only]
Namestring. Documentation for this section has not yet been entered.
override
Positionlong. Gets or sets the current position of this stream.
[read-only]
SafeFileHandleMicrosoft.Win32.SafeHandles.SafeFileHandle. Documentation for this section has not yet been entered.

Public Methods

override
BeginRead(byte[], int, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous read.
override
BeginWrite(byte[], int, int, AsyncCallback, object) : IAsyncResult
Begins an asynchronous write operation.
override
Close()
Closes the file and releases any resources associated with the current file stream.
override
EndRead(IAsyncResult) : int
Ends a pending asynchronous read request, and blocks until the read request has completed.
override
EndWrite(IAsyncResult)
Ends an asynchronous write, blocking until the I/O operation has completed.
Finalize()
Releases the resources held by the current instance.
override
Flush()
Updates the underlying file with the current state of the buffer and subsequently clears the buffer.
GetAccessControl() : System.Security.AccessControl.FileSecurity
Documentation for this section has not yet been entered.
Lock(long, long)
Documentation for this section has not yet been entered.
override
Read(byte[], int, int) : int
Reads a block of bytes from the stream and returns the data in the specified buffer.
override
ReadByte() : int
Reads a byte from the file and advances the read position one byte.
override
Seek(long, SeekOrigin) : long
Changes the position within the current stream by the given offset, which is relative to the stated origin.
SetAccessControl(System.Security.AccessControl.FileSecurity)
Documentation for this section has not yet been entered.
override
SetLength(long)
Sets the length of the current stream to the specified value.
Unlock(long, long)
Documentation for this section has not yet been entered.
override
Write(byte[], int, int)
Writes a block of bytes from a specified byte array to the current stream.
override
WriteByte(byte)
Writes a byte to the current position in the file stream.

Protected Methods

override
Dispose(bool)
Releases the unmanaged resources used by the System.IO.FileStream and optionally releases the managed resources.