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 資訊。 此類型可以是清單控制,例如 a GridView 或 ListView 控制。 也可以是單一項目的控制項,例如 a DetailsView 或 FormView 控制項。
你可以根據數值自訂應用程式 ContainerType 的行為,例如有條件地顯示或隱藏特定的 UI 元素。