FastInfoset.NET Class Reference for .NET
ReadElementContentAsShort Method (XmlFastInfosetReader)






Reads the current element and returns the content as a 16-bit signed integer.
Syntax
'Declaration
 
Public Function ReadElementContentAsShort() As System.Short
'Usage
 
Dim instance As XmlFastInfosetReader
Dim value As System.Short
 
value = instance.ReadElementContentAsShort()
public System.short ReadElementContentAsShort()
public function ReadElementContentAsShort(): System.Int16; 
public function ReadElementContentAsShort() : System.short;
public: System.short ReadElementContentAsShort(); 
public:
System.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.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members

Send Feedback