XhtmlMobileTextWriter.WriteDoctypeDeclaration Method

Note: This method is new in the .NET Framework version 2.0.

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
)

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: