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

  1. //------------------------------------------------------------------------------
  2. // <copyright file="CodeGenerationOptions.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.ComponentModel;
  19.    
  20.     /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions"]/*' />
  21.     /// <devdoc>
  22.     /// Specifies varoius flavours of XmlCodeExporter generated code.
  23.     /// </devdoc>
  24.     [Flags()]
  25.     public enum CodeGenerationOptions
  26.     {
  27.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.None"]/*' />
  28.         /// <devdoc>
  29.         /// <para>
  30.         /// Default: use clr primitives for xsd primitives, generate fields and arrays.
  31.         /// </para>
  32.         /// </devdoc>
  33.         [XmlIgnore()]
  34.         None = 0,
  35.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateProperties"]/*' />
  36.         /// <devdoc>
  37.         /// <para>
  38.         /// Generate propertyes instead of fields.
  39.         /// </para>
  40.         /// </devdoc>
  41.         [XmlEnum("properties")]
  42.         GenerateProperties = 1,
  43.        
  44.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateNewAsync"]/*' />
  45.         /// <devdoc>
  46.         /// <para>
  47.         /// Generate new RAD asynchronous pattern. The feature allows customers to use an event-based model for invoking Web services asynchronously.
  48.         /// </para>
  49.         /// </devdoc>
  50.         [XmlEnum("newAsync")]
  51.         GenerateNewAsync = 2,
  52.        
  53.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOldAsync"]/*' />
  54.         /// <devdoc>
  55.         /// <para>
  56.         /// Generate old asynchronous pattern: BeginXXX/EndXXX.
  57.         /// </para>
  58.         /// </devdoc>
  59.         [XmlEnum("oldAsync")]
  60.         GenerateOldAsync = 4,
  61.        
  62.        
  63.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOrder"]/*' />
  64.         /// <devdoc>
  65.         /// <para>
  66.         /// Generate OM using explicit ordering feature.
  67.         /// </para>
  68.         /// </devdoc>
  69.         [XmlEnum("order")]
  70.         GenerateOrder = 8,
  71.        
  72.         /// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.EnableDataBinding"]/*' />
  73.         /// <devdoc>
  74.         /// <para>
  75.         /// Generate OM INotifyPropertyChanged interface to enable data binding.
  76.         /// </para>
  77.         /// </devdoc>
  78.         [XmlEnum("enableDataBinding")]
  79.         EnableDataBinding = 16
  80.     }
  81. }

Developer Fusion