如何使用限制来过滤掉Outlook中附件的电子邮件? [英] How to use Restrict to filter out emails with attachments in Outlook?
本文介绍了如何使用限制来过滤掉Outlook中附件的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我可以使用以下代码查看带附件的电子邮件:
Hi there,
I can use the code below to get the view of emails with attachments:
Outlook.Folder control.Context;
string query ="urn:schemas:httpmail:hasattachment = 1";
oFolder.CurrentView.Filter = query;
oFolder.CurrentView.Apply();
如何将视图中的电子邮件输出到Outlook.Items?
I在下面尝试过。我可以获取所有未读项目:
How can I output the emails in the view to Outlook.Items?
I tried it below. I can get all Unread items:
Outlook.Items emails = oFolder.Items;
emails =emails.Restrict("[Unread]=true")
如何使用Restrict在Outlook中过滤带有附件的电子邮件?
提前致谢。
How can I use Restrict to filter emails with attachments out in Outlook?
Thanks in advance.
推荐答案
据我所知,hasattachments
就是你要找的东西。
我建议读这个:
在Outlook 2010中更好地搜索 [ ^ ]
第11章:搜索Outlook数据 [ ^ ]
如何:搜索文件夹中项目的附件以获得确切的短语 [ ^ ]
项目.Restrict Method(Outlook) [ ^ ]
过滤项目 [< a href =https://msdn.microsoft.com/en-us/library/office/ff863965.aspxtarget =_ blanktitle =New Window> ^ ]
As far as i remember,hasattachments
is that what you're looking for.
I'd suggest to read this:
Better Searching in Outlook 2010[^]
Chapter 11: Searching Outlook Data[^]
How to: Search Attachments of Items in a Folder for an Exact Phrase[^]
Items.Restrict Method (Outlook)[^]
Filtering Items[^]
这篇关于如何使用限制来过滤掉Outlook中附件的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文