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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaInclude.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.Xml.Serialization;
  20.    
  21.     /// <include file='doc\XmlSchemaInclude.uex' path='docs/doc[@for="XmlSchemaInclude"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaInclude : XmlSchemaExternal
  26.     {
  27.         XmlSchemaAnnotation annotation;
  28.        
  29.         /// <include file='doc\XmlSchemaInclude.uex' path='docs/doc[@for="XmlSchemaInclude.XmlSchemaInclude"]/*' />
  30.         public XmlSchemaInclude()
  31.         {
  32.             Compositor = Compositor.Include;
  33.         }
  34.         /// <include file='doc\XmlSchemaInclude.uex' path='docs/doc[@for="XmlSchemaInclude.Annotation"]/*' />
  35.         [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
  36.         public XmlSchemaAnnotation Annotation {
  37.             get { return annotation; }
  38.             set { annotation = value; }
  39.         }
  40.        
  41.         internal override void AddAnnotation(XmlSchemaAnnotation annotation)
  42.         {
  43.             this.annotation = annotation;
  44.         }
  45.     }
  46. }

Developer Fusion