System.Xml.Serialization.XmlSerializationReader.CreateAbstractTypeException Method

Creates an InvalidOperationException that indicates that an object being deserialized should be abstract.

Syntax

protected Exception CreateAbstractTypeException (string name, string ns)

Parameters

name
The name of the abstract type.
ns
The .NET Framework namespace of the abstract type.

Returns

An InvalidOperationException exception.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationReader are intended only for use 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: 1.0.5000.0, 2.0.0.0, 4.0.0.0