WebBrowser.DocumentType 屬性

定義

取得目前在 WebBrowser 控制項中顯示之文件的類型。

public:
 property System::String ^ DocumentType { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
public string DocumentType { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DocumentType : string
Public ReadOnly Property DocumentType As String

屬性值

目前文件的類型。

屬性

例外狀況

這個 WebBrowser 執行個體已不再有效。

無法從基礎 ActiveX IWebBrowser2 控制項中擷取 WebBrowser 介面實作的參考。

備註

此屬性的值會對應至檔的多重用途網際網路郵件延伸模組 (MIME) 類型。

適用於

另請參閱