ListControl.TagKey 属性

定义

获取 HtmlTextWriterTag 控件的 ListControl 值。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 控件的 ListControl 值。The HtmlTextWriterTag value for the ListControl control.

注解

属性允许输出流为ListControl从类派生的控件写入适当的 HTML 标记。 TagKeyThe 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.

适用于