TemplateField.CreateField Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new TemplateField object.

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

Protected Overrides Function CreateField As DataControlField

Return Value

Type: System.Web.UI.WebControls.DataControlField

Always returns a new TemplateField.

The CreateField method overrides the base method to return a TemplateField object.

Notes to Inheritors:

When overriding CreateField in a derived class, be sure to create a new instance of your type and not call the base method.

.NET Framework
Available since 2.0
Return to top
Show: