DekGenius.com
[ Team LiB ] Previous Section Next Section

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

public class XmlRootAttribute : Attribute {
// Public Constructors
   public XmlRootAttribute( );  
   public XmlRootAttribute( string elementName);  
// Public Instance Properties
   public string DataType{set; get; } 
   public string ElementName{set; get; } 
   public bool IsNullable{set; get; } 
   public string Namespace{set; get; } 
}

This type is used to indicate the class that will be serialized to XML as the root element. Its ElementName property indicates the name of the element to be serialized.

Hierarchy

System.Object System.Attribute XmlRootAttribute

Valid On

Class, Struct, Enum, Interface, ReturnValue

    [ Team LiB ] Previous Section Next Section