Name

XmlAttributes — System.Xml.Serialization (system.xml.dll)    class 

Synopsis

public class XmlAttributes {
// Public Constructors
   public XmlAttributes( );  
   public XmlAttributes( System.Reflection.ICustomAttributeProvider provider);  
// Public Instance Properties
   public XmlAnyAttributeAttribute XmlAnyAttribute{set; get; } 
   public XmlAnyElementAttributes XmlAnyElements{get; } 
   public XmlArrayAttribute XmlArray{set; get; } 
   public XmlArrayItemAttributes XmlArrayItems{get; } 
   public XmlAttributeAttribute XmlAttribute{set; get; } 
   public XmlChoiceIdentifierAttribute XmlChoiceIdentifier{get; } 
   public object XmlDefaultValue{set; get; } 
   public XmlElementAttributes XmlElements{get; } 
   public XmlEnumAttribute XmlEnum{set; get; } 
   public bool XmlIgnore{set; get; } 
   public bool Xmlns{set; get; } 
   public XmlRootAttribute XmlRoot{set; get; } 
   public XmlTextAttribute XmlText{set; get; } 
   public XmlTypeAttribute XmlType{set; get; } 
}

This type is used in conjunction with the XmlAttributeOverrides class to customize the serialization of an object at runtime. It has a property for each type of XML serialization attribute, which allows you to set the attributes at runtime.

Get .NET & XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.