Share via


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 .NET Micro Framework version 3.0 and above.

See Also

Reference

FileStream Class
FileStream Members
System.IO Namespace