Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlTextReader::ResolveEntity Method ()

 

Resolves the entity reference for EntityReference nodes.

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

public:
virtual void ResolveEntity() override

System_CAPS_noteNote

Starting with the .NET Framework 2.0, we recommend that you create XmlReader instances by using the XmlReader::Create method to take advantage of new functionality.

If the reader is positioned on an EntityReference node (XmlNodeType.EntityReference), if Read is called after calling this method, the entity replacement text is parsed. When the entity replacement text is finished, an EndEntity node is returned to close the entity reference scope.

System_CAPS_noteNote

After calling this method, if the entity is part of an attribute value, you must call ReadAttributeValue to step into the entity.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft