任何幫助,鏈接或想法都非常感謝。謝謝!查詢特定交易所2013文件夾EWS
總體目標
如何查詢,以換取2013具體的折閱讀每封郵件的身體,這樣我可以從自動警報收集信息並寫入到CSV文件?
具體問題,我想不出
如何查詢特定的文件夾?
問題
我只能找到如何搜索收件箱中的例子。我需要改變這個說法來說一個特定的文件夾。
當前的代碼段,其中的問題在於
try
{
//read the subject line of the 10 most recently recieved emails in the inbox
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10));
foreach (Item item in findResults.Items)
{
Console.WriteLine(item.Subject);
}
}
catch (Exception e)
{
Console.WriteLine(e.Message.ToString());
Console.ReadLine();
}
Console.ReadLine();
線問題的
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10));