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"> |
此方法主要由自訂行動頁面與控制介面卡的開發者使用。