开发者

How to access Groups in Lotus Notes using C#

I am trying 开发者_如何学运维to access Groups from Lotus Notes using C#.


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.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜