XhtmlTextWriter.SetDocType(XhtmlMobileDocType) Method

Definition

Specifies the XHTML document type for the text writer to render to the page or control.

C#
public virtual void SetDocType(System.Web.UI.XhtmlMobileDocType docType);

Parameters

docType
XhtmlMobileDocType

One of the XhtmlMobileDocType enumeration values.

Remarks

Use the SetDocType method in a custom page adapter to define the type of XHTML that you want to render to the requesting device. Supported document types are defined in the XhtmlMobileDocType enumeration.

Applies to

Ürün Sürümler
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also