CommandField.CopyProperties(DataControlField) 方法

定义

将当前 CommandField 对象的属性复制到指定的 DataControlField 对象。Copies the properties of the current CommandField 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 的属性将复制到的 CommandFieldThe DataControlField to copy the properties of the current CommandField to.

注解

CopyProperties方法是方法使用的帮助器方法 DataControlField.CloneField ,将当前对象的属性复制 CommandField 到方法所创建的 DataControlField 对象。The CopyProperties method is a helper method used by the DataControlField.CloneField method to copy the properties of the current CommandField object to the DataControlField object created by the method.

适用于

另请参阅