XhtmlTextWriter.SetDocType(XhtmlMobileDocType) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定文本编写器要呈现到页面或控件的 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 定义了支持的文档类型。