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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SoapTypeAttribute.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.    
  20.     /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute"]/*' />
  21.     /// <devdoc>
  22.     /// <para>[To be supplied.]</para>
  23.     /// </devdoc>
  24.     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum | AttributeTargets.Interface | AttributeTargets.Struct)]
  25.     public class SoapTypeAttribute : System.Attribute
  26.     {
  27.         string ns;
  28.         string typeName;
  29.         bool includeInSchema = true;
  30.        
  31.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.SoapTypeAttribute"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         public SoapTypeAttribute()
  36.         {
  37.         }
  38.        
  39.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.SoapTypeAttribute1"]/*' />
  40.         /// <devdoc>
  41.         /// <para>[To be supplied.]</para>
  42.         /// </devdoc>
  43.         public SoapTypeAttribute(string typeName)
  44.         {
  45.             this.typeName = typeName;
  46.         }
  47.        
  48.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.SoapTypeAttribute2"]/*' />
  49.         /// <devdoc>
  50.         /// <para>[To be supplied.]</para>
  51.         /// </devdoc>
  52.         public SoapTypeAttribute(string typeName, string ns)
  53.         {
  54.             this.typeName = typeName;
  55.             this.ns = ns;
  56.         }
  57.        
  58.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.IncludeInSchema"]/*' />
  59.         /// <devdoc>
  60.         /// <para>[To be supplied.]</para>
  61.         /// </devdoc>
  62.         public bool IncludeInSchema {
  63.             get { return includeInSchema; }
  64.             set { includeInSchema = value; }
  65.         }
  66.        
  67.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.TypeName"]/*' />
  68.         /// <devdoc>
  69.         /// <para>[To be supplied.]</para>
  70.         /// </devdoc>
  71.         public string TypeName {
  72.             get { return typeName == null ? string.Empty : typeName; }
  73.             set { typeName = value; }
  74.         }
  75.        
  76.         /// <include file='doc\SoapTypeAttribute.uex' path='docs/doc[@for="SoapTypeAttribute.Namespace"]/*' />
  77.         /// <devdoc>
  78.         /// <para>[To be supplied.]</para>
  79.         /// </devdoc>
  80.         public string Namespace {
  81.             get { return ns; }
  82.             set { ns = value; }
  83.         }
  84.     }
  85. }

Developer Fusion