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 。