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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaAnnotation.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\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation"]/*' />
  23.     /// <devdoc>
  24.     /// <para>[To be supplied.]</para>
  25.     /// </devdoc>
  26.     public class XmlSchemaAnnotation : XmlSchemaObject
  27.     {
  28.         string id;
  29.         XmlSchemaObjectCollection items = new XmlSchemaObjectCollection();
  30.         XmlAttribute[] moreAttributes;
  31.        
  32.         /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.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\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.Items"]/*' />
  43.         /// <devdoc>
  44.         /// <para>[To be supplied.]</para>
  45.         /// </devdoc>
  46.         [XmlElement("documentation", typeof(XmlSchemaDocumentation)), XmlElement("appinfo", typeof(XmlSchemaAppInfo))]
  47.         public XmlSchemaObjectCollection Items {
  48.             get { return items; }
  49.         }
  50.        
  51.         /// <include file='doc\XmlSchemaAnnotation.uex' path='docs/doc[@for="XmlSchemaAnnotation.UnhandledAttributes"]/*' />
  52.         /// <devdoc>
  53.         /// <para>[To be supplied.]</para>
  54.         /// </devdoc>
  55.         [XmlAnyAttribute()]
  56.         public XmlAttribute[] UnhandledAttributes {
  57.             get { return moreAttributes; }
  58.             set { moreAttributes = value; }
  59.         }
  60.        
  61.         [XmlIgnore()]
  62.         internal override string IdAttribute {
  63.             get { return Id; }
  64.             set { Id = value; }
  65.         }
  66.        
  67.         internal override void SetUnhandledAttributes(XmlAttribute[] moreAttributes)
  68.         {
  69.             this.moreAttributes = moreAttributes;
  70.         }
  71.     }
  72. }

Developer Fusion