ButtonField.CreateField Method

Creates and returns a new instance of the ButtonField class.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

protected:
virtual DataControlField^ CreateField () override
protected DataControlField CreateField ()
protected override function CreateField () : DataControlField
Not applicable.

Return Value

A new instance of the ButtonField class.

The CreateField method is a helper method that is used by the CloneField method of the base class to create an empty ButtonField object to which to copy the properties of the current ButtonField-derived object.

Notes to Inheritors: Override the CreateField method to return a new instance of the derived class. Do not call the CreateField method of the base class.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: