Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Outlook赎回组件-参数数无效_C#_Outlook_Outlook Redemption - Fatal编程技术网

C# Outlook赎回组件-参数数无效

C# Outlook赎回组件-参数数无效,c#,outlook,outlook-redemption,C#,Outlook,Outlook Redemption,我正在为一个小项目测试赎回库,以清除PST文件中的电子邮件。 下面使用Redemption library打开PST文件的简单代码应该运行正常,但给出了一个错误: RDOSession pstSession = new RDOSession(); RDOPstStore store = pstSession.LogonPstStore(@"d:\1.pst"); 我得到一个错误-“没有方法'LogonPstStore'的重载接受'1'个参数” 根据文档,LogonPSTStore()只有一个必

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

RDOSession pstSession = new RDOSession();
RDOPstStore store = pstSession.LogonPstStore(@"d:\1.pst");
我得到一个错误-“没有方法'LogonPstStore'的重载接受'1'个参数”

根据文档,LogonPSTStore()只有一个必需参数。所以这个错误令人困惑


我正在使用Outlook 2016的最新版本的赎回库。任何帮助都将不胜感激。

较新版本的.Net不会让您在COM方法中指定可选参数。VB/VBA总是这样做。

您可以传递可选参数的
Missing.Value

谢谢!!这很有帮助。