XhtmlMobileTextWriter.WriteDoctypeDeclaration(Doctype) 方法

定义

写入一个声明,该声明对于由提供Doctype的值表示的目标设备是唯一<!DOCTYPE>的。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public:
 virtual void WriteDoctypeDeclaration(System::Web::UI::MobileControls::Adapters::XhtmlAdapters::Doctype type);
public virtual void WriteDoctypeDeclaration(System.Web.UI.MobileControls.Adapters.XhtmlAdapters.Doctype type);
abstract member WriteDoctypeDeclaration : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.Doctype -> unit
override this.WriteDoctypeDeclaration : System.Web.UI.MobileControls.Adapters.XhtmlAdapters.Doctype -> unit
Public Overridable Sub WriteDoctypeDeclaration (type As Doctype)

参数

type
Doctype

一个 Doctype 值,指示要写入的声明的类型。

注解

页面适配器调用此方法,并根据 type该方法编写以下文档类型声明:

类型 Description
XhtmlBasic <\!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
XhtmlMobileProfile <\!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
Wml20 <\!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/dtd/wml20.dtd">

此方法主要由自定义移动页面和控件适配器的开发人员使用。

适用于

另请参阅