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 定義了支援的檔案類型。

適用於

另請參閱