NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileStream.CanWrite

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;

Property Value

true if the stream supports writing; false otherwise. Also returns false if the stream is closed.

Remarks

If a Stream subclass does not support writing, a call to Write, BeginWrite, or EndWrite will throw a NotSupportedException.

See Also

FileStream Class | FileStream Members | System.IO Namespace