XmlAttributes Members
Represents a collection of attribute objects that control how the XmlSerializer serializes and deserializes an object.
The following tables list the members exposed by the XmlAttributes type.
| Name | Description | |
|---|---|---|
| XmlAttributes | Overloaded. Initializes a new instance of the XmlAttributes class. |
| Name | Description | |
|---|---|---|
| XmlAnyAttribute | Gets or sets the XmlAnyAttributeAttribute to override. |
| XmlAnyElements | Gets the collection of XmlAnyElementAttribute objects to override. |
| XmlArray | Gets or sets an object that specifies how the XmlSerializer serializes a public field or read/write property that returns an array. |
| XmlArrayItems | Gets or sets a collection of objects that specify how the XmlSerializer serializes items inserted into an array returned by a public field or read/write property. |
| XmlAttribute | Gets or sets an object that specifies how the XmlSerializer serializes a public field or public read/write property as an XML attribute. |
| XmlChoiceIdentifier | Gets or sets an object that allows you to distinguish between a set of choices. |
| XmlDefaultValue | Gets or sets the default value of an XML element or attribute. |
| XmlElements | Gets a collection of objects that specify how the XmlSerializer serializes a public field or read/write property as an XML element. |
| XmlEnum | Gets or sets an object that specifies how the XmlSerializer serializes an enumeration member. |
| XmlIgnore | Gets or sets a value that specifies whether or not the XmlSerializer serializes a public field or public read/write property. |
| Xmlns | Gets or sets a value that specifies whether to keep all namespace declarations when an object containing a member that returns an XmlSerializerNamespaces object is overridden. |
| XmlRoot | Gets or sets an object that specifies how the XmlSerializer serializes a class as an XML root element. |
| XmlText | Gets or sets an object that instructs the XmlSerializer to serialize a public field or public read/write property as XML text. |
| XmlType | Gets or sets an object that specifies how the XmlSerializer serializes a class to which the XmlTypeAttribute has been applied. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Reference
XmlAttributes ClassSystem.Xml.Serialization Namespace
XmlAttributeOverrides Class
XmlSerializer
XmlAttributes Class
Other Resources
Introducing XML SerializationHow to: Specify an Alternate Element Name for an XML Stream
Controlling XML Serialization Using Attributes
Examples of XML Serialization
XML Schema Definition Tool (Xsd.exe)