CodeGenerationoptions.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeGenerationOptions.cs" company="Microsoft">
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. // </copyright>
  5. // <owner current="true" primary="true">ElenaK</owner>
  6. //------------------------------------------------------------------------------
  7. namespace System.Xml.Serialization
  8. {
  9. using System.ComponentModel;
  10. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions"]/*' />
  11. /// <devdoc>
  12. /// Specifies varoius flavours of XmlCodeExporter generated code.
  13. /// </devdoc>
  14. [Flags]
  15. public enum CodeGenerationOptions
  16. {
  17. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.None"]/*' />
  18. /// <devdoc>
  19. /// <para>
  20. /// Default: use clr primitives for xsd primitives, generate fields and arrays.
  21. /// </para>
  22. /// </devdoc>
  23. [XmlIgnore]
  24. None = 0,
  25. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateProperties"]/*' />
  26. /// <devdoc>
  27. /// <para>
  28. /// Generate propertyes instead of fields.
  29. /// </para>
  30. /// </devdoc>
  31. [XmlEnum("properties")]
  32. GenerateProperties = 0x1,
  33. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateNewAsync"]/*' />
  34. /// <devdoc>
  35. /// <para>
  36. /// Generate new RAD asynchronous pattern. The feature allows customers to use an event-based model for invoking Web services asynchronously.
  37. /// </para>
  38. /// </devdoc>
  39. [XmlEnum("newAsync")]
  40. GenerateNewAsync = 0x2,
  41. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOldAsync"]/*' />
  42. /// <devdoc>
  43. /// <para>
  44. /// Generate old asynchronous pattern: BeginXXX/EndXXX.
  45. /// </para>
  46. /// </devdoc>
  47. [XmlEnum("oldAsync")]
  48. GenerateOldAsync = 0x4,
  49. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOrder"]/*' />
  50. /// <devdoc>
  51. /// <para>
  52. /// Generate OM using explicit ordering feature.
  53. /// </para>
  54. /// </devdoc>
  55. [XmlEnum("order")]
  56. GenerateOrder = 0x08,
  57. /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.EnableDataBinding"]/*' />
  58. /// <devdoc>
  59. /// <para>
  60. /// Generate OM INotifyPropertyChanged interface to enable data binding.
  61. /// </para>
  62. /// </devdoc>
  63. [XmlEnum("enableDataBinding")]
  64. EnableDataBinding = 0x10,
  65. }
  66. }