使用英语阅读

通过


MobilePage.CreateHtmlTextWriter(TextWriter) 方法

定义

创建 HtmlTextWriter 对象以呈现该页的内容。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

C#
protected override System.Web.UI.HtmlTextWriter CreateHtmlTextWriter(System.IO.TextWriter writer);

参数

writer
TextWriter

用于创建 TextWriterHtmlTextWriter

返回

HtmlTextWriter 派生的 HtmlTextWriter 或文本编写器,例如

HtmlMobileTextWriterWmlMobileTextWriterChtmlMobileTextWriterXhtmlMobileTextWriter

注解

创建的编写器类型由与当前移动设备关联的适配器确定。 有关如何将适配器映射到设备的详细信息,请参阅 适配器映射

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另请参阅