XhtmlTextWriter.SetDocType(XhtmlMobileDocType) 方法

定义

指定文本编写器要呈现到页面或控件的 XHTML 文档类型。

public:
 virtual void SetDocType(System::Web::UI::XhtmlMobileDocType docType);
public virtual void SetDocType(System.Web.UI.XhtmlMobileDocType docType);
abstract member SetDocType : System.Web.UI.XhtmlMobileDocType -> unit
override this.SetDocType : System.Web.UI.XhtmlMobileDocType -> unit
Public Overridable Sub SetDocType (docType As XhtmlMobileDocType)

参数

docType
XhtmlMobileDocType

枚举值之 XhtmlMobileDocType 一。

注解

SetDocType使用自定义页面适配器中的方法定义要呈现给请求设备的 XHTML 类型。 枚举中 XhtmlMobileDocType 定义了支持的文档类型。

适用于

另请参阅