【发布时间】:2015-11-22 22:26:53
【问题描述】:
我正在使用 Outlook VSTO AdvancedSearch 功能从它们各自的PR_MESSAGE_ID 中搜索邮件列表。
我的查询看起来像
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId1' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId2' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targetId3' OR
http://schemas.microsoft.com/mapi/proptag/0x1035001E = 'targgetId4' ...etc.
我质疑这种方法的性能,我想知道是否有更优雅的查询,类似于 SELECT something WHERE 'MESSAGE_ID' IN (targetId1, targetId2, etc.)
【问题讨论】:
标签: c# outlook vsto advanced-search