Bagikan melalui


XhtmlMobileTextWriter.WriteDoctypeDeclaration(Doctype) Metode

Definisi

<!DOCTYPE> Menulis deklarasi yang unik untuk perangkat target yang diwakili oleh nilai yang disediakanDoctype. API ini kedaluarsa. Untuk informasi tentang cara mengembangkan aplikasi seluler ASP.NET, lihat Situs & Mobile Apps dengan 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)

Parameter

type
Doctype

Nilai Doctype yang menunjukkan jenis deklarasi untuk ditulis.

Keterangan

Adaptor halaman memanggil metode ini, dan tergantung pada type, menulis deklarasi jenis dokumen berikut:

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

Metode ini digunakan terutama oleh pengembang halaman seluler kustom dan adaptor kontrol.

Berlaku untuk

Lihat juga