Mono Class Library: System.IO.FileStream Overview | Members

System.IO.FileStream.CanSeek Property

Gets a bool value indicating whether the current stream supports seeking. [Edit]

public override bool CanSeek { get; }

Value

true if the stream supports seeking; false if the stream is closed or if the System.IO.FileStream was constructed from an operating-system handle such as a pipe or output to the console. [Edit]

Remarks

Note:

If a class derived from System.IO.Stream does not support seeking, a call to FileStream.Length (both get and set ), FileStream.Position, or FileStream.Seek(long, SeekOrigin) throws a NotSupportedException .

This property overrides Stream.CanSeek.

[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0