System.Xml [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 To be added System.Attribute System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue | System.AttributeTargets.All, AllowMultiple=true) When working in a portable class library, such as in Silverlight, Windows Phone or Windows Store App project, and you are using the .NET Framework 4.0.3 and above, use or in place of and . Use the to contain arbitrary data (as XML elements) that can be sent as part of an XML document, such as metadata sent as part of the document. Apply the to a field that returns an array of or objects. Such a field can be used in two ways, depending on whether an object is being serialized or deserialized. When serialized, the object is generated as XML elements or nodes, even though they have no corresponding member (or members) in the object being serialized. If you specify a property value when applying the attribute, all or objects inserted into the array must have the same element name and default namespace, or an exception is thrown. If you set the property value, you must set the property as well, and the or objects must also have the same name and namespace values. If no value is specified, the or objects can have any element name. When you call the method of the class, all elements that do not have a corresponding member in the object being deserialized are collected in the array. After deserialization, iterate through the collection of items to process the data. If you specify a value, the array contains only XML elements with that name. If you do not specify a value, the array contains all elements that have no corresponding member in the class. If a class contains more than one field to which the attribute is applied, use the , or and properties to differentiate between the contents of the arrays. If such a class (with multiple fields) also contains one field that has no differentiating property values set (in other words, and ) during deserialization, this array contains any unknown XML elements that are not already contained in the other arrays. If a class contains more than one field that does not have a differentiating , or and value set, the behavior during deserialization is unspecified. You can also apply the to a field that returns a single object. If you do so, you must use the properties and methods of the class to recursively iterate through the unknown elements. You can apply multiple instances of the to a class member, but each instance must have a distinct property value. Or, if the same property is set for each instance, a distinct property value must be set for each instance. The and events of the do not occur if you apply the to a member of a class. You can use the word XmlAnyElement in your code instead of the longer . For more information about using attributes, see Extending Metadata Using Attributes. Specifies that the member (a field that returns an array of or objects) contains objects that represent any XML element that has no corresponding member in the object being serialized or deserialized. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 Use the constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the class. Initializes a new instance of the class. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 Use the constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the class. Initializes a new instance of the class and specifies the XML element name generated in the XML document. The name of the XML element that the generates. Constructor 1.0.5000.0 2.0.0.0 4.0.0.0 Use the constructor when you are overriding the serialization of a field. For more details about overriding serialization, see the class. Initializes a new instance of the class and specifies the XML element name generated in the XML document and its XML namespace. The name of the XML element that the generates. The XML namespace of the XML element. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added: an object of type 'string' If you specify a property value when applying the attribute, all or objects inserted into the array must have the same element name and default namespace, or an exception is thrown. If you set the property value, you must set the property as well, and the or objects must also have the same name and namespace values. If no value is specified, the or objects can have any element name. When you call the method of the class, all attributes that do not have a corresponding member in the object being deserialized are collected in the array. If you specify a value, the array contains only XML elements with that name. If you do not specify a value, the array contains all elements that have no corresponding member in the class. If a class contains more than one field to which the attribute is applied, use the and properties to differentiate between the contents of the arrays. If such a class (with multiple fields) also contains one field that has no differentiating property values set (that is, and ) during deserialization, the array contains any XML elements that are not already contained in the other arrays. If you add more than one field that does not have a differentiating or value set, the last field in the class contains all unknown elements that are not already contained in the other arrays, and any other fields are set to null. You can apply multiple instances of the to a class member, but each instance must have a distinct property value. Or, if the same property is set for each instance, a distinct property value must be set for each instance. Gets or sets the XML element name. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.String To be added: an object of type 'string' The property allows you to set a unique name for the XML attribute. The property conforms to the rules for creating an XML namespace as found in the World Wide Web Consortium (www.w3.org) document, "Namespaces in XML." To set the property to a prefixed name, create an that contains the namespaces and prefixes used in the XML document. Set the property to one of the namespaces in the . When the XML is generated, the attribute name is correctly prefixed with the prefix associated with the specified namespace. Gets or sets the XML namespace generated in the XML document. Property 2.0.0.0 4.0.0.0 System.Int32 To be added. Use the enumeration to instruct the to generate code that sets the property. Once the property has been used on one public property or field in a type, it must be applied to all public properties and fields for that type and all inherited types. Gets or sets the explicit order in which the elements are serialized or deserialized.