AutoFieldsGenerator.AutoGenerateEnumFields Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether enumeration fields should be generated by this AutoFieldsGenerator instance.
public:
property Nullable<bool> AutoGenerateEnumFields { Nullable<bool> get(); void set(Nullable<bool> value); };
public bool? AutoGenerateEnumFields { get; set; }
member this.AutoGenerateEnumFields : Nullable<bool> with get, set
Public Property AutoGenerateEnumFields As Nullable(Of Boolean)
Property Value
true
if fields should be generated; otherwise, false
.
Remarks
If this flag is not set, the AutoFieldsGenerator instance uses the RenderingCompatibility property of the Control class to determine the default behavior. In that case, AutoGenerateEnumFields is set to true
when RenderingCompatibility represents version 4.5 or later, and false
in older versions.