AutoFieldsGenerator::AutoGenerateEnumFields Property

.NET Framework (current version)
 

Gets or sets a value that indicates whether enumeration fields should be generated by this AutoFieldsGenerator instance.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property Nullable<bool> AutoGenerateEnumFields {
	Nullable<bool> get();
	void set(Nullable<bool> value);
}

Property Value

Type: System::Nullable<Boolean>

true if fields should be generated; otherwise, false.

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.

.NET Framework
Available since 4.5
Return to top
Show: