如何使用 C# 访问 Lotus Notes 中的组

发布于 2024-08-08 21:05:50 字数 36 浏览 3 评论 0原文

我正在尝试使用 C# 从 Lotus Notes 访问组。

I am trying to access Groups from Lotus Notes using C#.

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

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

发布评论

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

评论(1

瘫痪情歌 2024-08-15 21:05:50

在Notes / Domino 中,组作为Notes 文档存储在名称和地址簿(NAB) 数据库中,该数据库通常作为names.nsf 存储在服务器的主数据文件夹中。如果您尝试访问某个组的详细信息(例如,该组的成员资格列表),您可以采用与访问任何 Notes 数据库中的文档相同的方式来执行此操作。因此,在 C# 中,您可以使用 domino.dll API。我没有示例代码,但基本步骤是:

  • 从 Session 对象获取 Session 的句柄
  • ,使用 GetDatabase 从数据库获取 NAB 数据库的句柄
  • ,获取保存组文档的视图的句柄,使用 GetView 方法。视图名称是“组”。
  • 从视图中,您可以查找特定的组文档(使用 GetDocumentByKey 方法),或者 yo9u 可以遍历视图中的所有文档(使用 GetFirstDocument() 和 GetNextDocument()
  • 以及文档句柄,您可以使用 GetItemValue 和 GetFirstItem等方法来获取成员列表、群组标题、描述等属性。

In Notes / Domino, Groups are stored as notes documents within the Name and Address Book (NAB) database, which is generally stored as names.nsf in the home data folder of the server. If you are trying to access details of a group (say, the group's membership list), you can do this in the same way that you would access documents in any Notes database. So, from C#, you can use the domino.dll API. I don't have sample code, but the basic steps would be:

  • get a handle to a Session
  • from the Session object, get a handle to the NAB database using GetDatabase
  • from the database, get a handle to the view which holds group documents, using the GetView method. The view name is "Groups".
  • from the view, you can look up a particular group document (using the GetDocumentByKey method) or yo9u can walk all documents in the view (using GetFirstDocument() and GetNextDocument()
  • with a handle to a document, you can use the GetItemValue and GetFirstItem, etc methods to get at the list of members, the group title, description, etc. attributes.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文