The Labs \ Source Viewer \ SSCLI \ System.Xml.Schema \ XmlSchemaAnnotated

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaAnnotated.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">priyal</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Schema
  17. {
  18.    
  19.     using System.Collections;
  20.     using System.Xml.Serialization;
  21.    
  22.     /// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated"]/*' />
  23.     /// <devdoc>
  24.     /// <para>[To be supplied.]</para>
  25.     /// </devdoc>
  26.     public class XmlSchemaAnnotated : XmlSchemaObject
  27.     {
  28.         string id;
  29.         XmlSchemaAnnotation annotation;
  30.         XmlAttribute[] moreAttributes;
  31.        
  32.         /// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.Id"]/*' />
  33.         /// <devdoc>
  34.         /// <para>[To be supplied.]</para>
  35.         /// </devdoc>
  36.         [XmlAttribute("id", DataType = "ID")]
  37.         public string Id {
  38.             get { return id; }
  39.             set { id = value; }
  40.         }
  41.        
  42.         /// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.Annotation"]/*' />
  43.         /// <devdoc>
  44.         /// <para>[To be supplied.]</para>
  45.         /// </devdoc>
  46.         [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
  47.         public XmlSchemaAnnotation Annotation {
  48.             get { return annotation; }
  49.             set { annotation = value; }
  50.         }
  51.        
  52.         /// <include file='doc\XmlSchemaAnnotated.uex' path='docs/doc[@for="XmlSchemaAnnotated.UnhandledAttributes"]/*' />
  53.         /// <devdoc>
  54.         /// <para>[To be supplied.]</para>
  55.         /// </devdoc>
  56.         [XmlAnyAttribute()]
  57.         public XmlAttribute[] UnhandledAttributes {
  58.             get { return moreAttributes; }
  59.             set { moreAttributes = value; }
  60.         }
  61.        
  62.         [XmlIgnore()]
  63.         internal override string IdAttribute {
  64.             get { return Id; }
  65.             set { Id = value; }
  66.         }
  67.        
  68.         internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes)
  69.         {
  70.             this.moreAttributes = moreAttributes;
  71.         }
  72.         internal override void AddAnnotation(XmlSchemaAnnotation annotation)
  73.         {
  74.             this.annotation = annotation;
  75.         }
  76.     }
  77. }

Developer Fusion