[EWSMA]无法使用MFCMAPI或Outlook Spy在根目录中找到以编程方式创建的文件夹 [英] [EWSMA] Can't find folder programmatically created in root using MFCMAPI or Outlook Spy

查看:73
本文介绍了[EWSMA]无法使用MFCMAPI或Outlook Spy在根目录中找到以编程方式创建的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Exchange Web服务托管API直接在WellKnownFolderName.Root下创建一个文件夹 特别是使用看起来像这样的代码:

I used Exchange Web Services Managed API to create a folder directly underneath WellKnownFolderName.Root  In particular using code that looks something like this:

ExchangeService service = ...
string emailAddress = ...
Folder myFolder = new Folder(service);
myFolder.DisplayName = "My EWS Test Folder";
FolderId rootFolderId = new FolderId(WellKnownFolderName.Root, new Mailbox(emailAddress ));
myFolder.Save(rootFolderId);

因为,我在根目录下创建了文件夹,我看不到它,也不希望看到它出现在外表。我确实希望在Outlook中隐藏此文件夹。但是,我无法在"Root - Mailbox"下使用MFCMAPI或OutlookSpy找到此文件夹。包含IPM_SUBTREE文件夹的文件夹
。 如果我使用Exchange Web服务托管API检索WellKnownFolderName.Root下面的所有文件夹,我会找到我之前创建的文件夹。 我想知道为什么我无法使用MFCMAPI或Outlook Spy看到这个文件夹

$


谢谢,

Greg

Since, I created the folder underneath root I don't see it and don't expect to see it show up in Outlook. I do want this folder to be hidden in Outlook. However, I was unable to find this folder using MFCMAPI or OutlookSpy under the "Root - Mailbox" folder that contains the IPM_SUBTREE folder.  If I use Exchange Web Services Managed API to retrieve all the folders underneath WellKnownFolderName.Root I do find the folder that I previously created.  I was wondering why I'm not able to see this folder using MFCMAPI or Outlook Spy?

Thanks,
Greg

推荐答案

你好,

我有同样的问题。我使用EWS在根容器中创建了一个文件夹,但它不会在MFCMAPI中列出...我甚至尝试按ENTRYID搜索,但MFCMAPI返回MAPI_E_UNKNOWN_ENTRYID。但是,似乎该文件夹仍可通过EWS界面访问
,因为按名称搜索可以找到它。

I'm having the same problem. I created a folder in the root container using EWS, but it won't be listed in MFCMAPI... I've even tried searching by ENTRYID but MFCMAPI returns MAPI_E_UNKNOWN_ENTRYID. It seems, however, that the folder is still accessible through the EWS interface, as searching by name finds it.

您找到了解决方案吗?也许有一些丢失的MAPI属性需要设置...

Did you find any solution? Maybe there is some missing MAPI property to be set...

我正在使用EWS Java API 1.2和Exchange 2007。

I'm using EWS Java API 1.2 and Exchange 2007.

谢谢,

Guillermo

Guillermo


这篇关于[EWSMA]无法使用MFCMAPI或Outlook Spy在根目录中找到以编程方式创建的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆