XmlAnyAttribute Property

XmlAttributes::XmlAnyAttribute Property


Gets or sets the XmlAnyAttributeAttribute to override.

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

property XmlAnyAttributeAttribute^ XmlAnyAttribute {
	XmlAnyAttributeAttribute^ get();
	void set(XmlAnyAttributeAttribute^ value);

The XmlAnyAttributeAttribute can be applied to a member that returns an array of XmlAttribute objects on deserialization. This allows the XmlSerializer to deserialize any attributes that do not have a corresponding member in the object being deserialized--thus those elements are "unknown" to the XmlSerializer. This is useful when the XML stream has been altered by an XML Web service, or when it is known that random data is always included with the XML stream.

The XmlAnyAttribute property allows you to override the serialization of a member to which the XmlAnyAttributeAttribute has been applied.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft