System.IO.FileStream: Property Members

The properties of System.IO.FileStream are listed below. For a list of all members, see the FileStream Members list.

See Also: Inherited members from System.IO.Stream

Public Properties

[read-only]
override
CanReadbool.

Gets a value indicating whether the current stream supports reading.

[read-only]
override
CanSeekbool.

Gets a value indicating whether the current stream supports seeking.

[read-only]
override
CanWritebool.

Gets a value indicating whether the current stream supports writing.

[read-only]
HandleIntPtr.

Gets the operating system file handle for the file that the current FileStream object encapsulates.

[read-only]
IsAsyncbool.

Gets a value indicating whether the FileStream was opened asynchronously or synchronously.

[read-only]
override
Lengthlong.

Gets the length in bytes of the stream.

[read-only]
Namestring.

Gets the name of the FileStream that was passed to the constructor.

override
Positionlong.

Gets or sets the current position of this stream.

[read-only]
SafeFileHandleMicrosoft.Win32.SafeHandles.SafeFileHandle.

Gets a Microsoft.Win32.SafeHandles.SafeFileHandle object that represents the operating system file handle for the file that the current System.IO.FileStream object encapsulates.