FastInfoset.NET Class Reference for .NET
ReadElementContentAsInt() Method






Reads the current element and returns the content as a 32-bit signed integer.
Syntax
'Declaration
 
Public Overloads Overrides NotOverridable Function ReadElementContentAsInt() As System.Integer
'Usage
 
Dim instance As XmlFastInfosetReader
Dim value As System.Integer
 
value = instance.ReadElementContentAsInt()
public override System.int ReadElementContentAsInt()
public function ReadElementContentAsInt(): System.Integer; override; 
public override function ReadElementContentAsInt() : System.int;
public: System.int ReadElementContentAsInt(); override 
public:
System.int ReadElementContentAsInt(); override 

Return Value

The element content as a 32-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 32-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 32-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
Overload List
Base Implementation in ReadElementContentAsInt()

Send Feedback