XmlAnyElementAttributes.Add Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Represents a collection of XmlAnyElementAttribute objects.
Assembly: System.Xml.Serialization (in System.Xml.Serialization.dll)
Parameters
- attribute
- Type: System.Xml.Serialization.XmlAnyElementAttribute
The XmlAnyElementAttribute to add to the collection.
Use the XmlAnyElementAttributes to override the behavior of a set of XmlAnyElementAttribute objects. Multiple instances of the XmlAnyElementAttribute class can be applied to a class member, as long as each instance has a distinct Name property value; this instructs the XmlSerializer to collect unknown elements under the named element into the appropriate array. It is for this reason that multiple instances of the XmlAnyElementAttribute class can be added to the XmlAnyElementAttributes.