使用 c# Interop.domino.dll 使用管理员帐户创建 NotesSession

Create NotesSession with Admin Account using c# Interop.domino.dll

如何使用 c# 使用管理员帐户创建 NotesSession Interop.Domino.dll?我不想获取笔记客户端的当前会话。

InitializeUsingNotesUserName method in the NotesSession class,但仅当您的 C# 代码在 Domino 服务器上 运行 时才可用。如果您在客户端环境中 运行,则必须切换 ID。您可以通过在 Notes C API 中调用 SECKFMSwitchToIDFile 来完成此操作,但如果您这样做,您将进入一些相当复杂的领域,并且它可能(我不记得)更改 Notes.ini 文件.