LiteralControl.Render(HtmlTextWriter) 方法

定义

LiteralControl 对象的内容写入 ASP.NET 页。Writes the content of the LiteralControl object to the ASP.NET page.

protected:
 override void Render(System::Web::UI::HtmlTextWriter ^ output);
protected public:
 override void Render(System::Web::UI::HtmlTextWriter ^ output);
protected override void Render (System.Web.UI.HtmlTextWriter output);
protected internal override void Render (System.Web.UI.HtmlTextWriter output);
override this.Render : System.Web.UI.HtmlTextWriter -> unit
Protected Overrides Sub Render (output As HtmlTextWriter)
Protected Friend Overrides Sub Render (output As HtmlTextWriter)

参数

output
HtmlTextWriter

HtmlTextWriter 的内容呈现给请求客户端的 LiteralControlAn HtmlTextWriter that renders the content of the LiteralControl to the requesting client.

注解

当创建自定义服务器控件并想要将特定 HTML 或文本呈现给客户端时,可以通过将属性的值传递给方法来提高控件的性能, Text Control.Render 而不是调用 Render 方法。When you create a custom server control and want to render specific HTML or text to a client, you can improve the performance of the control by passing the value of the Text property to the Control.Render method rather than calling the Render method.

适用于

另请参阅