CrystalXmlRootNameException
Namespace: SnowBank.Data.Xml · class
Implements: InvalidOperationException, ISerializable
Error thrown when a root element has no name: the serializer declares no default, and the caller passed none
Remarks
A name is never guessed. The General profile writes no default name for a collection root, so a caller on that profile passes an explicit rootName; the DataContract profile falls back to its ArrayOfX convention when the item contract can express one.
Constructors
CrystalXmlRootNameException
CrystalXmlRootNameException(Type type)
Reports that no root element name could be resolved for a document rooted in type
CrystalXmlRootNameException(Type type, string message)
Reports that no root element name could be resolved for a document rooted in type, with a custom explanation
Properties
Type
Type Type { get; }
Type for which no root element name could be resolved
Methods
GetObjectData
void GetObjectData(SerializationInfo info, StreamingContext context)