EntityTemplateUserControl.ContainerType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取包含此实体模板的数据绑定控件的类型。
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 的信息。 此类型可以是列表控件,例如 GridView 或 ListView 控件。 它也可以是单项控件,例如 DetailsView 或 FormView 控件。
可以根据值自定义应用程序 ContainerType 的行为,例如有条件地显示或隐藏特定的 UI 元素。