Determines whether the current stream supports writing.
[Visual Basic] Overridable Public ReadOnly Property CanWrite As Boolean [C#] public bool CanWrite {override get;} [C++] public: __property virtual bool get_CanWrite(); [JScript] public function get CanWrite() : Boolean;
true if the stream supports writing; otherwise, false. Also returns false if the stream is closed.
If a BufferedStream subclass does not support writing, calls to Write throw a NotSupportedException.
BufferedStream Class | BufferedStream Members | System.IO Namespace | Write