Sdílet prostřednictvím


XmlSerializationReader.CheckReaderCount Method

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.

Checks whether the deserializer has advanced.

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

Syntax

'Declaration
Protected Sub CheckReaderCount ( _
    ByRef whileIterations As Integer, _
    ByRef readerCount As Integer _
)
protected void CheckReaderCount(
    ref int whileIterations,
    ref int readerCount
)

Parameters

  • whileIterations
    Type: System.Int32%
    The current count in a while loop.

Exceptions

Exception Condition
InvalidOperationException

The ReaderCount has not advanced.

Remarks

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

The CheckReaderCount method is used when the checkDeserializerAdvances attribute of the <xmlSerializer> configuration element is set to true.

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.