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!

BinaryReader.ReadBoolean

Reads a Boolean from the current stream. The current position of the stream is advanced by one byte.

[Visual Basic]
Overridable Public Function ReadBoolean() As Boolean
[C#]
public virtual bool ReadBoolean();
[C++]
public: virtual bool ReadBoolean();
[JScript]
public function ReadBoolean() : Boolean;

Return Value

true if the byte is non-zero; otherwise false.

Exceptions

Exception Type Condition
EndOfStreamException The end of the stream has been reached.
IOException An I/O error occurs.

See Also

BinaryReader Class | BinaryReader Members | System.IO Namespace