TemplateField.CopyProperties(DataControlField) 方法

定義

將目前 TemplateField 衍生物件的屬性複製至指定的 DataControlField 物件。Copies the properties of the current TemplateField-derived 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,可將目前 TemplateField 的屬性複製過去。The DataControlField to copy the properties of the current TemplateField to.

備註

CopyProperties方法是一個 helper 方法,用來將目前衍生物件的屬性複製 TemplateFieldDataControlField 方法所建立的物件。The CopyProperties method is a helper method used to copy the properties of the current TemplateField-derived object to the DataControlField object created by the method.

給繼承者的注意事項

CopyProperties(DataControlField)在衍生類別中覆寫時,請務必呼叫基類的 CopyProperties(DataControlField) 方法。When overriding CopyProperties(DataControlField) in a derived class, be sure to call the base class's CopyProperties(DataControlField) method.

適用於

另請參閱