Determines whether data is available for reading without blocking.
[Visual Basic] Overridable Public ReadOnly Property DataAvailable As Boolean [C#] public bool DataAvailable {override get;} [C++] public: __property virtual bool get_DataAvailable(); [JScript] public function get DataAvailable() : Boolean;
true if data is available, false otherwise. Also returns false if the stream is closed.
Exception Type | Condition |
---|---|
IOException | The underlying stream is null or closed. |
BufferedStream Class | BufferedStream Members | System.IO Namespace