Name

XmlTextAttribute — System.Xml.Serialization (system.xml.dll) CF 1.0  class 

Synopsis

public class XmlTextAttribute : Attribute {
// Public Constructors
   public XmlTextAttribute( );  
   public XmlTextAttribute( Type type);  
// Public Instance Properties
   public string DataType{set; get; } 
   public Type Type{set; get; } 
}

This type is used to indicate that the member should be serialized to XML as text. Only one member per class can be serialized as text. The member to which XmlTextAttribute is applied must return a primitive or enumeration type, a System.Xml.XmlNode, an array of System.Strings, or an array of System.Objects, the latter only if the individual array elements are of one of the former types. The DataType property determines the XML Schema type serialized, and the Type property determines the System.Type of the member.

Hierarchy

System.ObjectSystem.AttributeXmlTextAttribute

Valid On

Property, Field, Parameter, ReturnValue

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.