EntityTemplateFactory.CreateEntityTemplate Method (MetaTable, DataBoundControlMode, String)
.NET Framework (current version)
Creates an instance of the entity template for the specified table.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
Public Overridable Function CreateEntityTemplate ( table As MetaTable, mode As DataBoundControlMode, uiHint As String ) As EntityTemplateUserControl
Parameters
- table
-
Type:
System.Web.DynamicData.MetaTable
The metadata for the table to which the entity template applies.
- mode
-
Type:
System.Web.UI.WebControls.DataBoundControlMode
The display mode of the entity template.
- uiHint
-
Type:
System.String
The name of the template to use.
Return Value
Type: System.Web.DynamicData.EntityTemplateUserControlAn instance of the EntityTemplateUserControl class.
| Exception | Condition |
|---|---|
| ArgumentNullException | The table is null. |
.NET Framework
Available since 4.0
Available since 4.0
Show: