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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SoapAttributeAttribute.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\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute"]/*' />
  21.     /// <devdoc>
  22.     /// <para>[To be supplied.]</para>
  23.     /// </devdoc>
  24.     [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  25.     public class SoapAttributeAttribute : System.Attribute
  26.     {
  27.         string attributeName;
  28.         string ns;
  29.         string dataType;
  30.        
  31.         /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.SoapAttributeAttribute"]/*' />
  32.         /// <devdoc>
  33.         /// <para>[To be supplied.]</para>
  34.         /// </devdoc>
  35.         public SoapAttributeAttribute()
  36.         {
  37.         }
  38.        
  39.         /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.SoapAttributeAttribute1"]/*' />
  40.         /// <devdoc>
  41.         /// <para>[To be supplied.]</para>
  42.         /// </devdoc>
  43.         public SoapAttributeAttribute(string attributeName)
  44.         {
  45.             this.attributeName = attributeName;
  46.         }
  47.        
  48.         /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.ElementName"]/*' />
  49.         /// <devdoc>
  50.         /// <para>[To be supplied.]</para>
  51.         /// </devdoc>
  52.         public string AttributeName {
  53.             get { return attributeName == null ? string.Empty : attributeName; }
  54.             set { attributeName = value; }
  55.         }
  56.        
  57.         /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.Namespace"]/*' />
  58.         /// <devdoc>
  59.         /// <para>[To be supplied.]</para>
  60.         /// </devdoc>
  61.         public string Namespace {
  62.             get { return ns; }
  63.             set { ns = value; }
  64.         }
  65.        
  66.         /// <include file='doc\SoapAttributeAttribute.uex' path='docs/doc[@for="SoapAttributeAttribute.DataType"]/*' />
  67.         /// <devdoc>
  68.         /// <para>[To be supplied.]</para>
  69.         /// </devdoc>
  70.         public string DataType {
  71.             get { return dataType == null ? string.Empty : dataType; }
  72.             set { dataType = value; }
  73.         }
  74.     }
  75. }

Developer Fusion