Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAs(Type,IXmlNamespaceResolver) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAs Method : ReadElementContentAs(Type,IXmlNamespaceResolver) Method



returnType
The type of the value to be returned.
namespaceResolver
An IXmlNamespaceResolver object that is used to resolve any namespace prefixes related to type conversion.
Reads the current element and returns the content as an object of the type specified.


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

Syntax

Visual Basic (Declaration) 
Overloads Overrides Public NotOverridable Function ReadElementContentAs( _
   ByVal returnType As Type, _
   ByVal namespaceResolver As IXmlNamespaceResolver _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim returnType As Type
Dim namespaceResolver As IXmlNamespaceResolver
Dim value As Object
 
value = instance.ReadElementContentAs(returnType, namespaceResolver)
C# 
public override object ReadElementContentAs( 
   Type returnType,
   IXmlNamespaceResolver namespaceResolver
)
C++/CLI 
public:
Object^ ReadElementContentAs( 
   Type^ returnType,
   IXmlNamespaceResolver namespaceResolver
) override 

Parameters

returnType
The type of the value to be returned.
namespaceResolver
An IXmlNamespaceResolver object that is used to resolve any namespace prefixes related to type conversion.

Return Value

The element content converted to the requested typed object.

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.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

XmlFastInfosetReader Class
XmlFastInfosetReader Members
Overload List
Base Implementation in System.Xml.XmlReader