語言

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">

此方法主要由自訂行動頁面與控制介面卡的開發者使用。

適用於

另請參閱