DataPagerField.CloneField 方法

定義

建立衍生自 DataPagerField 之目前物件的複本。Creates a copy of the current object that is derived from DataPagerField.

protected public:
 System::Web::UI::WebControls::DataPagerField ^ CloneField();
protected internal System.Web.UI.WebControls.DataPagerField CloneField ();
member this.CloneField : unit -> System.Web.UI.WebControls.DataPagerField
Protected Friend Function CloneField () As DataPagerField

傳回

目前 DataControlField 的複本。A copy of the current DataControlField object.

備註

方法是CloneFields方法所使用的 helper 方法, 用來建立衍生自之DataPagerField目前物件的複本。 CloneFieldThe CloneField method is a helper method that is used by the CloneFields method to create a copy of the current object that is derived from DataPagerField. 若要建立目前物件的複本, CloneField方法會先使用CreateField方法建立DataPagerField物件的新實例。To create a copy of the current object, the CloneField method first creates a new instance of a DataPagerField object by using the CreateField method. 然後它會呼叫CopyProperties方法, 以複製目前物件的屬性值。Then it calls the CopyProperties method to copy the property values of the current object.

適用於

另請參閱