XmlSerializationReader.CheckReaderCount Method (Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product 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 (in System.Xml.dll)

Protected Sub CheckReaderCount (
	ByRef whileIterations As Integer,
	ByRef readerCount As Integer
)

Parameters

whileIterations
Type: System.Int32

The current count in a while loop.

readerCount
Type: System.Int32

The current ReaderCount.

Exception Condition
InvalidOperationException

The ReaderCount has not advanced.

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. For more information, see <xmlSerializer> Element.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: