ListControl.TagKey 属性

定义

获取 ListControl 控件的 HtmlTextWriterTag 值。Gets the HtmlTextWriterTag value for the ListControl control.

protected:
 virtual property System::Web::UI::HtmlTextWriterTag TagKey { System::Web::UI::HtmlTextWriterTag get(); };
protected override System.Web.UI.HtmlTextWriterTag TagKey { get; }
member this.TagKey : System.Web.UI.HtmlTextWriterTag
Protected Overrides ReadOnly Property TagKey As HtmlTextWriterTag

属性值

HtmlTextWriterTag

HtmlTextWriterTag 控件的 ListControl 值。The HtmlTextWriterTag value for the ListControl control.

注解

TagKey属性允许输出流为从类派生的控件写入适当的 HTML 标记 ListControlThe TagKey property allows the output stream to write the appropriate HTML markup for the control that is derived from the ListControl class.

继承者说明

可以重写 TagKey 属性以指定要用于 HtmlTextWriterTag 派生控件的值。You can override the TagKey property to specify which HtmlTextWriterTag value to use for your derived control.

适用于