FileStream.CanWrite Property

Gets a value indicating whether the current stream supports writing.

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

Syntax

public override bool CanWrite { get; }

Property Value

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

Version Information

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

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace