如何使用 C# 以编程方式将内容(邮件、联系人等)添加到 NSF 文件?

发布于 2024-08-12 01:30:54 字数 121 浏览 5 评论 0原文

我创建了一些 Domino 服务器用户。 现在想要使用 c# 和 Domino.dll 以编程方式向其中添加内容。

注意:我没有找到任何方法可以手动将一个 nsf 的内容(邮件、日历)添加到另一个 nsf 文件。

I have created some Domino Server Users.
And Now want to progaramaticaly add content to it using c# and Domino.dll.

Note: i did not find any way to manually add content (mails,calendar) of one nsf to another nsf file.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

君勿笑 2024-08-19 01:30:55

如果您专门寻找如何手动“将一个 nsf 的内容添加到另一个 nsf”,则可以使用 Document 类的 CopyToDatabase 方法来完成此操作。该方法将目标数据库对象作为其唯一参数,并返回该目标数据库中新文档的文档句柄。

...
    Document doc2 = doc1.CopyToDatabase(db2);
...

If you are specifically looking for how to manually "add content of one nsf to another nsf", you can accomplish this using the CopyToDatabase method of the Document class. The method takes the target database object as its only argument, and returns a Document handle to the new document in that target database.

...
    Document doc2 = doc1.CopyToDatabase(db2);
...
指尖上得阳光 2024-08-19 01:30:55

Domino.dll 公开 COM 接口。
COM 互操作教程说明在第一部分中需要做什么。

The Domino.dll exposes a COM interface.
COM Interop tutorial explains in the first part what needs to be done.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文