Share via


XmlReader.ReadContentAsObject Method

Reads the text content at the current position as an Object.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual Object ReadContentAsObject ()

Return Value

The text content as the most appropriate common language runtime (CLR) object.

Remarks

Concatenates values of textual nodes of the current content, ignoring comments and PIs, expanding entity references, and returns the content as the most appropriate type by default as string. Stops at start tags and end tags.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace