我正在尝试使用VB .NET中的ComAutomationFactory类,我使用的示例是c#,工作正常,但是我的项目没有编译,并且显示这个类没有定义??
另外,返回类型是什么?在c#示例中,它返回一个动态类型,但此类型在vb .NET中不存在?
发布于 2010-04-21 20:05:33
根据这篇博客,你的样本可能是旧的:
http://silverlight-essentials.blogspot.com/2010/03/breaking-changes-in-com-interop-between.html
它的名称更改为:
类ComAutomationFactory已重命名为AutomationFactory。此外,您还必须为此类引用System.Runtime.InteropServices.Automation。
关于返回类型,这个问题的答案有一个解决方案:
Iterating over Word Document Fields using ComAutomationFactory in Silverlight 4
https://stackoverflow.com/questions/2681462
复制相似问题