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

System.IO.FileStream.CanWrite Property

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

public override bool CanWrite { get; }

Value

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

Remarks

If a class derived from System.IO.Stream does not support writing, a call to FileStream.Write(Byte[], int, int) or FileStream.BeginWrite(Byte[], int, int, AsyncCallback, object) will throw a NotSupportedException .

Note: This property overrides Stream.CanWrite.

[Edit]

Requirements

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