Compartilhar via


XmlSerializationReader.ReaderCount Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets the current count of the XmlReader.

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

Syntax

'Declaration
Protected ReadOnly Property ReaderCount As Integer
protected int ReaderCount { get; }

Property Value

Type: System.Int32
The current count of an XmlReader.

Remarks

The method is used by generated classes and should not be directly invoked.

The XmlSerializationReader uses an instance of the XmlReader class to count when a read operation occurs. The count is incremented each time the reader calls an appropriate method, for example the Read method or the ReadElementString method.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.