Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAsBoolean(string) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAsBoolean Method : ReadElementContentAsBoolean(String) Method



name
The name of the element.
Checks that the specified name matches that of the current element, then reads the current element and returns the content as a boolean value.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Public Function ReadElementContentAsBoolean( _
   ByVal name As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim name As String
Dim value As Boolean
 
value = instance.ReadElementContentAsBoolean(name)
C# 
public bool ReadElementContentAsBoolean( 
   string name
)
C++/CLI 
public:
bool ReadElementContentAsBoolean( 
   String^ name
) 

Parameters

name
The name of the element.

Return Value

The element content as a boolean value.

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 boolean value, the reader returns the value read. If the content is of any other type, the reader attempts to convert it to a boolean value.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also