XhtmlMobileTextWriter.WriteDoctypeDeclaration Method

Writes a <!DOCTYPE> declaration that is unique to target devices represented by the provided Doctype value.

Namespace: System.Web.UI.MobileControls.Adapters.XhtmlAdapters
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
virtual void WriteDoctypeDeclaration (
	Doctype type
)
public void WriteDoctypeDeclaration (
	Doctype type
)
public function WriteDoctypeDeclaration (
	type : Doctype
)
Not applicable.

Parameters

type

A Doctype value indicating the type of declaration to write.

The page adapter calls this method, and depending on the type, writes the following document type declarations:

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

This method is used primarily by developers of custom mobile page and control adapters.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: