CheckBoxField.CreateField Method

Definition

Creates an empty CheckBoxField object.

protected override System.Web.UI.WebControls.DataControlField CreateField();

Returns

An empty CheckBoxField.

Remarks

The CreateField method is a helper method used by the DataControlField.CloneField method to create an empty CheckBoxField object to which the properties of the current CheckBoxField object can be copied.

Notes to Inheritors

When overriding CreateField() in a derived class, be sure to create a new instance of your type and not call the base method.

Applies to

产品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also