System.Xml.Serialization.XmlSerializationReader.CreateBadDerivationException Method

Populates an object from its XML representation at the current location of the System.Xml.XmlReader, with an option to read the inner element.

Syntax

protected Exception CreateBadDerivationException (string xsdDerived, string nsDerived, string xsdBase, string nsBase, string clrDerived, string clrBase)

Parameters

xsdDerived
The local name of the derived XML Schema data type.
nsDerived
The namespace of the derived XML Schema data type.
xsdBase
The local name of the base XML Schema data type.
nsBase
The namespace of the base XML Schema data type.
clrDerived
The namespace of the derived .NET Framework type.
clrBase
The name of the base .NET Framework type.

Returns

An InvalidOperationException exception.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

Namespace: System.Xml.Serialization
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0