CheckBoxField.CopyProperties(DataControlField) 方法
定义
将当前 CheckBoxField 对象的属性复制到指定的 DataControlField 对象。Copies the properties of the current CheckBoxField object to the specified DataControlField object.
protected:
override void CopyProperties(System::Web::UI::WebControls::DataControlField ^ newField);
protected override void CopyProperties (System.Web.UI.WebControls.DataControlField newField);
override this.CopyProperties : System.Web.UI.WebControls.DataControlField -> unit
Protected Overrides Sub CopyProperties (newField As DataControlField)
参数
- newField
- DataControlField
当前 DataControlField 的属性将复制到的 CheckBoxField。The DataControlField to copy the properties of the current CheckBoxField to.
注解
CopyProperties方法是方法使用的帮助器方法 DataControlField.CloneField ,将当前对象的属性复制 CheckBoxField 到方法所创建的 DataControlField 对象 CopyProperties 。The CopyProperties method is a helper method used by the DataControlField.CloneField method to copy the properties of the current CheckBoxField object to the DataControlField object created by the CopyProperties method.
继承者说明
当 CopyProperties(DataControlField) 在派生类中重写时,请确保调用基类的 CopyProperties(DataControlField) 方法。When overriding CopyProperties(DataControlField) in a derived class, be sure to call the base class's CopyProperties(DataControlField) method.