XhtmlMobileTextWriter.WriteDoctypeDeclaration(Doctype) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
写入一个声明,该声明对于由提供Doctype的值表示的目标设备是唯一<!DOCTYPE>的。 此 API 已过时。 有关如何开发 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该方法编写以下文档类型声明:
| 类型 | 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"> |
此方法主要由自定义移动页面和控件适配器的开发人员使用。