问题描述
您好,
我正在尝试打开邮箱下的文件夹。有没有具体的方法这样做?我使用的代码是:
I am trying to open a folder under a mailbox. Is there a specific way of doing this? The code I am using is:
私人
静态
FindItemsResults < Microsoft.Exchange.WebServices.Data。 项目 >
FindResults( string
emailFromFilter, ExchangeService
service )
privatestaticFindItemsResults<Microsoft.Exchange.WebServices.Data.Item> FindResults(string emailFromFilter, ExchangeService service)
{
ItemView
view = new
ItemView (10);
ItemView view = newItemView(10);
FindItemsResults < Microsoft.Exchange.WebServices.Data。 项目 >
findResults = null ;
FindItemsResults<Microsoft.Exchange.WebServices.Data.Item> findResults = null;
邮箱
mbox = new
邮箱 ( @ [email protected] );
Mailbox mbox = newMailbox(@[email protected]);
FolderId
mboxFolder = new
FolderId ( WellKnownFolderName 。收件箱,
mbox);
FolderId mboxFolder = newFolderId(WellKnownFolderName.Inbox, mbox);
findResults = service.FindItems(mboxFolder,view);
findResults = service.FindItems(mboxFolder, view);
返回
findResults;
return findResults;
}
这打开邮箱很好,但我似乎无法导航到文件夹。
Which opens the mailbox fine, however I can't seem to navigate to the folders.
任何人都可以帮助我吗?
Can anyone please help me?
谢谢,
推荐答案
这篇关于使用EWS打开邮箱文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!