[ Team LiB ] Previous Section Next Section

XmlTextAttributeSystem.Xml.Serialization (system.xml.dll) CF 1.0  class 

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.Object System.Attribute XmlTextAttribute

Valid On

Property, Field, Parameter, ReturnValue

    [ Team LiB ] Previous Section Next Section