XmlSerializer.UnknownNode Event

 
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.

Occurs when the XmlSerializer encounters an XML node of unknown type during deserialization.

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

member UnknownNode : IEvent<XmlNodeEventHandler,
    XmlNodeEventArgs>

By default, after calling the Deserialize method, the XmlSerializer ignores XML nodes of unknown types. However, you can use this event to handle such node types.

The following example prints the type of any encountered unknown node.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: