如何使用Notes API识别Lotus Notes中“收件箱/草稿/已发送"中的文档? [英] How to Identify the Document is in Inbox/Draft/Sent in Lotus Notes Using Notes API?

查看:479
本文介绍了如何使用Notes API识别Lotus Notes中“收件箱/草稿/已发送"中的文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

DocumentCollection文档= db.getAllDocuments(); 文档doc = collection.getFirstDocument();

DocumentCollection documents = db.getAllDocuments(); Document doc = collection.getFirstDocument();

用于标识文档位置的方法.无论是在收件箱"中还是已发送"或草稿"中.

Which method used to identify the document Location. Whether it is in Inbox or Sent or Drafts.

推荐答案

最安全的方法是使用db.GetView()获取每个文件夹的句柄,然后查看文档是否在该文件夹中.为此,您可以使用db.AllEntries()方法获取NotesViewEntryCollection,然后调用

The safest way is to get a handle to each folder using db.GetView() and then look to see if the document is within that folder. For that you could use the db.AllEntries() method to get a NotesViewEntryCollection, and then call the GetEntry method to see if the document is within that collection.

如果为数据库启用了文件夹引用,则可以使用

If you have folder references enabled for the database, you might be able to use the folderreferences property of the Notes Document to make things easier.

这篇关于如何使用Notes API识别Lotus Notes中“收件箱/草稿/已发送"中的文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆