简体   繁体   中英

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

How to create NotesSession with admin account using c# Interop.Domino.dll ? I don't want to get current session of notes client.

There is a InitializeUsingNotesUserName method in the NotesSession class, but it is only available if your C# code is running on a Domino server. If you are running in a client environment, you will have to switch the ID. You can do this by calling SECKFMSwitchToIDFile in the Notes C API, but you'll be getting into some pretty complex territory if you do this, and it might (I don't recall) change the KeyFileName entry in the Notes.ini file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM