Export (0) Print
Expand All

XmlReader.ReadAttributeValue Method

When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.

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

public abstract bool ReadAttributeValue()

Return Value

Type: System.Boolean
true if there are nodes to return.
false if the reader is not positioned on an attribute node when the initial call is made or if all the attribute values have been read.
An empty attribute, such as, misc="", returns true with a single node with a value of String.Empty.

Use this method after calling MoveToAttribute to read through the text or entity reference nodes that make up the attribute value. The Depth of the attribute value nodes is one plus the depth of the attribute node; it increments and decrements by one when you step into and out of general entity references.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft