Outlook Redemption 组件 - 参数数量无效

Outlook Redemption component - Invalid number of arguments

我正在为一个小项目测试 Redemption 库,以从 PST 文件中清除电子邮件。 下面使用 Redemption 库打开 PST 文件的简单代码应该 运行 没问题,但给出错误:

RDOSession pstSession = new RDOSession();
RDOPstStore store = pstSession.LogonPstStore(@"d:.pst");

我收到一个错误 - "No overload for method 'LogonPstStore' takes '1' arguments"。

根据文档 here,LogonPSTStore() 只有 1 个强制参数。所以这个错误令人困惑..

我在 Outlook 2016 中使用最新版本的 Redemption 库。如有任何帮助,我们将不胜感激。

较新版本的 .Net 不要求您在 COM 方法中指定可选参数。 VB/VBA 总是那样。
您可以为可选参数传递 Missing.Value