DataBoundControl.ItemType 属性

定义

获取或设置强类型化数据绑定的数据项目类型的名称。Gets or sets the name of the data item type for strongly typed data binding.

public:
 virtual property System::String ^ ItemType { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string ItemType { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.ItemType : string with get, set
Public Overridable Property ItemType As String

属性值

String

模型类型的名称。The name of the model type.

属性

注解

设置此属性将启用 ItemBindItem 数据绑定表达式。Setting this property enables the Item and BindItem data-binding expressions.

设置此方法会自动启用动态数据功能。Setting this method automatically enables Dynamic Data functionality.

有关如何在 Web 窗体中使用模型绑定的教程系列,请参阅 模型绑定和 Web 窗体For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

适用于