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 接口的实现的引用。

注解

此属性的值对应于文档) 类型的多用途 Internet 邮件扩展 (MIME。

适用于

另请参阅