Editar

Compartilhar via


IFieldTemplateFactory.CreateFieldTemplate Method

Definition

Creates an instance of a field template using the MetaColumn class, the DataBoundControlMode class and UIHint property.

public:
 System::Web::DynamicData::IFieldTemplate ^ CreateFieldTemplate(System::Web::DynamicData::MetaColumn ^ column, System::Web::UI::WebControls::DataBoundControlMode mode, System::String ^ uiHint);
public System.Web.DynamicData.IFieldTemplate CreateFieldTemplate (System.Web.DynamicData.MetaColumn column, System.Web.UI.WebControls.DataBoundControlMode mode, string uiHint);
abstract member CreateFieldTemplate : System.Web.DynamicData.MetaColumn * System.Web.UI.WebControls.DataBoundControlMode * string -> System.Web.DynamicData.IFieldTemplate
Public Function CreateFieldTemplate (column As MetaColumn, mode As DataBoundControlMode, uiHint As String) As IFieldTemplate

Parameters

column
MetaColumn

Specifies the data column to use to display the field template.

mode
DataBoundControlMode

Specifies the display mode of the field template.

uiHint
String

Specifies the field template to use.

Returns

An instance of a FieldTemplateFactory object when implemented in a class.

Remarks

ASP.NET Dynamic Data field templates are ASP.NET user controls that map data controls to data types in a data model. Field templates generally derive from FieldTemplateUserControl, the class that enables access to data fields, data columns, and metadata in data models. Dynamic Data projects provide default field templates, but you can modify them or create custom field templates. When implemented, this method creates a field template based on the data column, the mode of the data column, and the UIHint property. You specify the uiHint parameter if you want to render data using a custom field template.

Applies to