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!

Stream.CanRead

Determines whether the current stream supports reading.

[Visual Basic]
MustOverride Public ReadOnly Property CanRead As Boolean
[C#]
public bool CanRead {abstract get;}
[C++]
public: __property virtual bool get_CanRead() = 0;
[JScript]
public abstract function get CanRead() : Boolean;

Property Value

true if the stream supports reading; otherwise, false.

Remarks

If a Stream subclass does not support reading, calls to the read and peek methods will throw a NotSupportedException.

See Also

Stream Class | Stream Members | System.IO Namespace