TemplatePagerField.CreateField 方法

定義

建立並傳回 TemplatePagerField 類別的新執行個體。Creates and returns a new instance of the TemplatePagerField class.

protected:
 override System::Web::UI::WebControls::DataPagerField ^ CreateField();
protected override System.Web.UI.WebControls.DataPagerField CreateField ();
override this.CreateField : unit -> System.Web.UI.WebControls.DataPagerField
Protected Overrides Function CreateField () As DataPagerField

傳回

TemplatePagerField 類別的新執行個體。A new instance of the TemplatePagerField class.

備註

CreateField方法是 helper 方法。The CreateField method is a helper method. 基類的CloneField方法會使用此類別來建立空TemplatePagerField的物件。It is used by the CloneField method of the base class to create an empty TemplatePagerField object.

給繼承者的注意事項

覆寫CreateField()方法以傳回衍生類別的新實例。Override the CreateField() method to return a new instance of the derived class. 請勿呼叫CreateField()基類的方法。Do not call the CreateField() method of the base class.

適用於

另請參閱