The Labs \ Source Viewer \ SSCLI \ System.Xml.Serialization \ XmlSchemaProviderAttribute

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSchemaProviderAttribute.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">ElenaK</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Serialization
  17. {
  18.     using System;
  19.     using System.Xml.Schema;
  20.    
  21.     /// <include file='doc\XmlSchemaProviderAttribute.uex' path='docs/doc[@for="XmlSchemaProviderAttribute"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Struct)]
  26.     public sealed class XmlSchemaProviderAttribute : System.Attribute
  27.     {
  28.         string methodName;
  29.         bool any;
  30.        
  31.         /// <include file='doc\XmlSchemaProviderAttribute.uex' path='docs/doc[@for="XmlSchemaProviderAttribute.XmlSchemaProviderAttribute"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         public XmlSchemaProviderAttribute(string methodName)
  36.         {
  37.             this.methodName = methodName;
  38.         }
  39.        
  40.         /// <include file='doc\XmlSchemaProviderAttribute.uex' path='docs/doc[@for="XmlSchemaProviderAttribute.MethodName"]/*' />
  41.         /// <devdoc>
  42.         /// <para>[To be supplied.]</para>
  43.         /// </devdoc>
  44.         public string MethodName {
  45.             get { return methodName; }
  46.         }
  47.        
  48.         /// <include file='doc\XmlSchemaProviderAttribute.uex' path='docs/doc[@for="XmlSchemaProviderAttribute.IsAny"]/*' />
  49.         /// <devdoc>
  50.         /// <para>[To be supplied.]</para>
  51.         /// </devdoc>
  52.         public bool IsAny {
  53.             get { return any; }
  54.             set { any = value; }
  55.         }
  56.     }
  57. }

Developer Fusion