CheckBoxField.CreateField Method
本文内容
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.
Creates an empty CheckBoxField object.
protected:
override System::Web::UI::WebControls::DataControlField ^ CreateField();
protected override System.Web.UI.WebControls.DataControlField CreateField();
override this.CreateField : unit -> System.Web.UI.WebControls.DataControlField
Protected Overrides Function CreateField () As DataControlField
An empty CheckBoxField.
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.
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 |