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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaImport.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\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     public class XmlSchemaImport : XmlSchemaExternal
  26.     {
  27.         string ns;
  28.         XmlSchemaAnnotation annotation;
  29.        
  30.         /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.XmlSchemaImport"]/*' />
  31.         public XmlSchemaImport()
  32.         {
  33.             Compositor = Compositor.Import;
  34.         }
  35.        
  36.         /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.Namespace"]/*' />
  37.         [XmlAttribute("namespace", DataType = "anyURI")]
  38.         public string Namespace {
  39.             get { return ns; }
  40.             set { ns = value; }
  41.         }
  42.        
  43.         /// <include file='doc\XmlSchemaImport.uex' path='docs/doc[@for="XmlSchemaImport.Annotation"]/*' />
  44.         [XmlElement("annotation", typeof(XmlSchemaAnnotation))]
  45.         public XmlSchemaAnnotation Annotation {
  46.             get { return annotation; }
  47.             set { annotation = value; }
  48.         }
  49.        
  50.         internal override void AddAnnotation(XmlSchemaAnnotation annotation)
  51.         {
  52.             this.annotation = annotation;
  53.         }
  54.     }
  55. }

Developer Fusion