語言

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 。

適用於

另請參閱