WebBrowser.DocumentType 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取当前显示在 WebBrowser 控件中的文档的类型。
public:
property System::String ^ DocumentType { System::String ^ get(); };
C#
[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) 类型。
产品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |