使用Items.restrct搜索关键字

搜索body和Subject:

Outlook.Items items = Inbox.Items.Restrict("@SQL=\"urn:schemas:httpmail:textdescription\" like '%" + [keyworkds] + "'");

只搜索Subject:

Outlook.Items iis = Inbox.Items.Restrict("@SQL=\"urn:schemas:httpmail:subject\" like '%" + [keyworkds] + "'");



posted @ 2012-03-16 12:07  许阳 无锡  阅读(248)  评论(0编辑  收藏  举报