EntityTemplateUserControl.ContainerType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the type of the data-bound control that contains this entity template.
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
Property Value
The type that contains the template.
Remarks
The ContainerType class provides information about the context (the control type) in which the EntityTemplateUserControl class is contained. This type can be a list control, such as a GridView or ListView control. It can also be a single-item control, such as a DetailsView or FormView control.
You can customize the behavior of an application depending on the ContainerType value, such as conditionally displaying or hiding specific UI elements.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈