HtmlMeta.Render(HtmlTextWriter) 方法
定义
使用指定的 HtmlTextWriter 对象将 HtmlMeta 控件呈现给客户端浏览器。Renders the HtmlMeta control to the client's browser using the specified HtmlTextWriter object.
protected public:
override void Render(System::Web::UI::HtmlTextWriter ^ writer);
protected internal override void Render (System.Web.UI.HtmlTextWriter writer);
override this.Render : System.Web.UI.HtmlTextWriter -> unit
Protected Friend Overrides Sub Render (writer As HtmlTextWriter)
参数
- writer
- HtmlTextWriter
HtmlTextWriter 用于在客户端浏览器上呈现 HtmlMeta 控件的内容。The HtmlTextWriter used to render the HtmlMeta control's content on the client's browser.
注解
HtmlMeta SelfClosingTagEnd <meta> 如果客户端的浏览器符合 XHTML,控件将在元素上呈现) (/> 的 HTML 括号。The HtmlMeta control renders a SelfClosingTagEnd HTML bracket (/>) on the <meta> element if the client's browser is XHTML compliant. 有关为非 XHTML 呈现配置 ASP.NET 的详细信息,请参阅 如何:在 ASP.NET 网站中配置 XHTML 呈现。For more information on configuring ASP.NET for non-XHTML rendering, see How to: Configure XHTML Rendering in ASP.NET Web Sites.
继承者说明
扩展控件时 HtmlMeta ,重写 Render(HtmlTextWriter) 方法以提供自定义呈现。When extending the HtmlMeta control, override the Render(HtmlTextWriter) method to provide custom rendering.