Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

75 lines
2.9 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="CodeGenerationOptions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <owner current="true" primary="true">[....]</owner>
//------------------------------------------------------------------------------
namespace System.Xml.Serialization
{
using System.ComponentModel;
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions"]/*' />
/// <devdoc>
/// Specifies varoius flavours of XmlCodeExporter generated code.
/// </devdoc>
[Flags]
public enum CodeGenerationOptions
{
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.None"]/*' />
/// <devdoc>
/// <para>
/// Default: use clr primitives for xsd primitives, generate fields and arrays.
/// </para>
/// </devdoc>
[XmlIgnore]
None = 0,
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateProperties"]/*' />
/// <devdoc>
/// <para>
/// Generate propertyes instead of fields.
/// </para>
/// </devdoc>
[XmlEnum("properties")]
GenerateProperties = 0x1,
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateNewAsync"]/*' />
/// <devdoc>
/// <para>
/// Generate new RAD asynchronous pattern. The feature allows customers to use an event-based model for invoking Web services asynchronously.
/// </para>
/// </devdoc>
[XmlEnum("newAsync")]
GenerateNewAsync = 0x2,
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOldAsync"]/*' />
/// <devdoc>
/// <para>
/// Generate old asynchronous pattern: BeginXXX/EndXXX.
/// </para>
/// </devdoc>
[XmlEnum("oldAsync")]
GenerateOldAsync = 0x4,
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.GenerateOrder"]/*' />
/// <devdoc>
/// <para>
/// Generate OM using explicit ordering feature.
/// </para>
/// </devdoc>
[XmlEnum("order")]
GenerateOrder = 0x08,
/// <include file='doc\CodeGenerationOptions.uex' path='docs/doc[@for="CodeGenerationOptions.EnableDataBinding"]/*' />
/// <devdoc>
/// <para>
/// Generate OM INotifyPropertyChanged interface to enable data binding.
/// </para>
/// </devdoc>
[XmlEnum("enableDataBinding")]
EnableDataBinding = 0x10,
}
}