Indicates to the XmlSerializer that the member must be treated as XML text when the class that contains it is serialized or deserialized.
Assembly: System.Xml (in System.Xml.dll)
Thetype exposes the following members.
|Equals||Infrastructure. Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Returns the hash code for this instance. (Inherited from Attribute.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Match||When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
Only one instance of the class can be applied in a class.
You can apply the to public fields and public read/write properties that return primitive and enumeration types.
You can apply the to a field or property that returns an array of strings. You can also apply the attribute to an array of type Object but you must set the Type property to string. In that case, any strings inserted into the array are serialized as XML text.
By default, the XmlSerializer serializes a class member as an XML element. However, if you apply the to a member, the XmlSerializer translates its value into XML text. This means that the value is encoded into the content of an XML element.
You can use the word XmlText in your code instead of the longer .
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.