Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.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# 在redemption中从out look文件夹获取存储空间_C#_Visual Studio 2012_.net 4.0_Outlook_Outlook Redemption - Fatal编程技术网

C# 在redemption中从out look文件夹获取存储空间

C# 在redemption中从out look文件夹获取存储空间,c#,visual-studio-2012,.net-4.0,outlook,outlook-redemption,C#,Visual Studio 2012,.net 4.0,Outlook,Outlook Redemption,我在项目中使用以下代码从OutLook文件夹获取存储 internal static string TryToGetFolderProperty(Outlook.Folder f, string propName, string defaultVal) { try { Outlook.StorageItem si = f.GetStorage("Flow", Outlook.OlSto

我在项目中使用以下代码从OutLook文件夹获取存储

        internal static string TryToGetFolderProperty(Outlook.Folder f, string propName, string defaultVal)
        {
            try
            {
                Outlook.StorageItem si = f.GetStorage("Flow", Outlook.OlStorageIdentifierType.olIdentifyBySubject);
                Outlook.UserProperty up = si.UserProperties.Find(propName, true);

                if (up == null)
                    return defaultVal;

                return up.Value as string;
            }
            catch
            {
                return defaultVal;
            }
        }
我想用一个赎回文件夹,而不是现有的outlook文件夹来做同样的事情,如下所示

internal static string TryToGetFolderProperty(RDOFolder f, string propName, string defaultVal)
但在更改代码后,我意识到没有任何方法可以从“赎回”文件夹中获取存储空间。例如:-f.GetStorage。我们有办法做到这一点吗?请告诉我。

隐藏(关联)邮件与MAPI级别的常规邮件没有任何区别。Redemption不公开存储对象,而是使用RDOFolder.HiddenItems属性公开隐藏的消息,该属性返回RDOFolder.Items返回的相同RDOItems对象

RDOMail hiddenMessage = YourRDOFolder.HiddenItems.Find("Subject = 'Flow' ")