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

System.IO.Stream.CanWrite Property

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

public abstract bool CanWrite { get; }

Value

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

Remarks

If a class derived from System.IO.Stream does not support writing, the following methods throw a NotSupportedException: Stream.Write(Byte[], int, int), Stream.WriteByte(byte), and Stream.BeginWrite(Byte[], int, int, AsyncCallback, object).

Operation
As described above.

[Edit]

Requirements

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