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

System.IO.FileStream.CanRead Property

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

public override bool CanRead { get; }

Value

true if the stream supports reading; false if the stream is closed or was opened with write-only access. [Edit]

Remarks

This property is read-only.

Note:

This property overrides Stream.CanRead.

If a class derived from System.IO.Stream does not support reading, the Read method throws a NotSupportedException .

[Edit]

Requirements

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