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.ReadInt16

Reads a 2-byte signed integer from the current stream and advances the current position of the stream by 2 bytes.

[Visual Basic]
Overridable Public Function ReadInt16() As Short
[C#]
public virtual short ReadInt16();
[C++]
public: virtual short ReadInt16();
[JScript]
public function ReadInt16() : Int16;

Return Value

A 2-byte signed integer read from the current stream.

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