Share via


FileStream.CanRead Property

Gets a value indicating whether the current stream supports reading.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override bool CanRead { get; }

Property Value

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

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace