Noemax FastInfoset.NET
ReadElementContentAsShort Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetReader Class : ReadElementContentAsShort Method






Reads the current element and returns the content as a 16-bit signed integer.

Syntax

Visual Basic (Declaration) 
Public Function ReadElementContentAsShort() As Short
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim value As Short
 
value = instance.ReadElementContentAsShort()
C# 
public short ReadElementContentAsShort()
Delphi 
public function ReadElementContentAsShort(): ShortInt; 
JScript 
public function ReadElementContentAsShort() : short;
Managed Extensions for C++ 
public: short ReadElementContentAsShort(); 
C++/CLI 
public:
short ReadElementContentAsShort(); 

Return Value

The element content as a 16-bit signed integer

Remarks

This method reads the start tag, the content of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.

If the content is a binary encoded 16-bit signed integer, the reader returns the value read. If the content is of any other type, the reader attempts to convert it to a 16-bit signed integer.

See Also