简体   繁体   English

使用 vb.net 在 Outlook 公用文件夹中搜索

[英]searching in outlook public folder by using vb.net

Is there a way to search in outlook public folders by using vb.net .有没有办法使用vb.net在 Outlook 公共文件夹中进行搜索。 I have tried to search all the web and I didn't find.我试图搜索所有网络,但没有找到。

You are free to use the Restrict or Find / FindNext methods of the Items class.您可以自由使用Items类的RestrictFind / FindNext方法。 Read more about these methods in the following series of articles:在以下系列文章中阅读有关这些方法的更多信息:

Also, you may find the AdvancedSearch method of the Application class helpful.此外,您可能会发现Application类的AdvancedSearch方法很有帮助。 The key benefits of using the AdvancedSearch method in Outlook are:在 Outlook 中使用AdvancedSearch方法的主要好处是:

  • The search is performed in another thread.搜索在另一个线程中执行。 You don't need to run another thread manually since the AdvancedSearch method runs it automatically in the background.您不需要手动运行另一个线程,因为AdvancedSearch方法会在后台自动运行它。
  • Possibility to search for any item types: mail, appointment, calendar, notes etc. in any location, ie beyond the scope of a certain folder.可以在任何位置搜索任何项目类型:邮件、约会、日历、笔记等,即超出某个文件夹的范围。 The Restrict and Find / FindNext methods can be applied to a particular Items collection (see the Items property of the Folder class in Outlook). RestrictFind / FindNext方法可以应用于特定的Items集合(请参阅 Outlook 中Folder类的Items属性)。
  • Full support for DASL queries (custom properties can be used for searching too).完全支持 DASL 查询(自定义属性也可用于搜索)。 You can read more about this in the Filtering article in MSDN.您可以在 MSDN 的过滤文章中阅读有关此内容的更多信息。 To improve the search performance, Instant Search keywords can be used if Instant Search is enabled for the store (see the IsInstantSearchEnabled property of the Store class).为了提高搜索性能,如果为商店启用了即时搜索,则可以使用即时搜索关键字(请参阅 Store 类的 IsInstantSearchEnabled 属性)。
  • You can stop the search process at any moment using the Stop method of the Search class.您可以随时使用 Search 类的Stop方法停止搜索过程。

Read more about that method in the Advanced search in Outlook programmatically: C#, VB.NET article.在以编程方式在 Outlook中的高级搜索中阅读有关该方法的更多信息:C#、VB.NET文章。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM