Export (0) Print
Expand All

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
)

Parameters

type
Type: System.Web.UI.MobileControls.Adapters.XhtmlAdapters.Doctype

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft