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 資訊。 此類型可以是清單控制,例如 a GridViewListView 控制。 也可以是單一項目的控制項,例如 a DetailsViewFormView 控制項。

你可以根據數值自訂應用程式 ContainerType 的行為,例如有條件地顯示或隱藏特定的 UI 元素。

適用於