EntityTemplateUserControl.ContainerType 属性

定义

获取包含此实体模板的数据绑定控件的类型。

public:
 virtual property System::Web::DynamicData::ContainerType ContainerType { System::Web::DynamicData::ContainerType get(); };
public virtual System.Web.DynamicData.ContainerType ContainerType { get; }
member this.ContainerType : System.Web.DynamicData.ContainerType
Public Overridable ReadOnly Property ContainerType As ContainerType

属性值

包含模板的类型。

注解

ContainerType 类提供有关包含类的上下文(控件类型) EntityTemplateUserControl 的信息。 此类型可以是列表控件,例如 GridViewListView 控件。 它也可以是单项控件,例如 DetailsViewFormView 控件。

可以根据值自定义应用程序 ContainerType 的行为,例如有条件地显示或隐藏特定的 UI 元素。

适用于