SoapElementAttribute.cs 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. //------------------------------------------------------------------------------
  2. // <copyright file="SoapElementAttribute.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">Microsoft</owner>
  6. //------------------------------------------------------------------------------
  7. namespace System.Xml.Serialization {
  8. using System;
  9. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute"]/*' />
  10. /// <devdoc>
  11. /// <para>[To be supplied.]</para>
  12. /// </devdoc>
  13. [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
  14. public class SoapElementAttribute : System.Attribute {
  15. string elementName;
  16. string dataType;
  17. bool nullable;
  18. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.SoapElementAttribute"]/*' />
  19. /// <devdoc>
  20. /// <para>[To be supplied.]</para>
  21. /// </devdoc>
  22. public SoapElementAttribute() {
  23. }
  24. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.SoapElementAttribute1"]/*' />
  25. /// <devdoc>
  26. /// <para>[To be supplied.]</para>
  27. /// </devdoc>
  28. public SoapElementAttribute(string elementName) {
  29. this.elementName = elementName;
  30. }
  31. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.ElementName"]/*' />
  32. /// <devdoc>
  33. /// <para>[To be supplied.]</para>
  34. /// </devdoc>
  35. public string ElementName {
  36. get { return elementName == null ? string.Empty : elementName; }
  37. set { elementName = value; }
  38. }
  39. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.DataType"]/*' />
  40. /// <devdoc>
  41. /// <para>[To be supplied.]</para>
  42. /// </devdoc>
  43. public string DataType {
  44. get { return dataType == null ? string.Empty : dataType; }
  45. set { dataType = value; }
  46. }
  47. /// <include file='doc\SoapElementAttribute.uex' path='docs/doc[@for="SoapElementAttribute.IsNullable"]/*' />
  48. /// <devdoc>
  49. /// <para>[To be supplied.]</para>
  50. /// </devdoc>
  51. public bool IsNullable {
  52. get { return nullable; }
  53. set { nullable = value; }
  54. }
  55. }
  56. }