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

System.IO.Stream.CanRead Property

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

public abstract bool CanRead { get; }

Value

true if the stream supports reading; otherwise, false. [Edit]

Remarks

If a class derived from System.IO.Stream does not support reading, the following methods throw a NotSupportedException : Stream.BeginRead(Byte[], int, int, AsyncCallback, object) , Stream.Read(Byte[], int, int) and Stream.ReadByte .

Operation
As described above.

[Edit]

Requirements

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