在哪里可以找到C#的WPF WebBrowser.Document支持的接口列表? [英] Where can I find the list of interfaces supported by the WPF WebBrowser.Document from C#?
问题描述
在哪里可以找到来自C#的WPF WebBrowser.Document(命名空间system.windows.controls)支持的接口列表?
Where can I find the list of interfaces supported by the WPF WebBrowser.Document (namespace system.windows.controls) from C#?
此外,在哪里可以找到Microsoft网站上的官方文档?来自MS http://msdn.microsoft.com/zh-cn/library/system.windows.controls.webbrowser.document%28v=vs.110%29.aspx 仅声明以下内容:
Moreover, where can I find the official documentation from Microsoft web site? The document from MS http://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser.document%28v=vs.110%29.aspx only state this:
备注
需要将Document对象强制转换为所需的COM接口。
但是我找不到该对象可以提供的接口列表。
But I cannot find the list of interfaces that I can expect from this object.
推荐答案
您可以尝试在.NET RCW对象上调用 wb.Document.GetType()。GUID
,看看它是否属于预期的COM同级。您也可以尝试 wb.Document.GetType()。GetInterfaces()
。
You can try invoking wb.Document.GetType().GUID
on the .NET RCW object and see if it's of an expected COM coclass. You can also try wb.Document.GetType().GetInterfaces()
.
这可能适用于HTML, Office和带有类型库的任何其他组件,但是它可能不适用于不提供类型信息的对象,例如在类库顶部未实现的C ++组件,即它们使用而是预先编译的标准封送处理。
This might work for HTML, Office and any other component with a type library, but it might not work for objects that don't provide type information, such as C++ components that are not implemented on top of a type library, i.e. they use pre-compiled standard marshaling instead.
这篇关于在哪里可以找到C#的WPF WebBrowser.Document支持的接口列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!