Lotus notes 检查Domino服务器的连接状态
是否可以使用C#API检查连接状态Lotus notes 检查Domino服务器的连接状态,lotus-notes,lotus-domino,lotusscript,Lotus Notes,Lotus Domino,Lotusscript,是否可以使用C#API检查连接状态 我有一个C#应用程序,我必须检查与Domino服务器的连接是否仍然有效,或者Domino服务器重新启动,我失去了连接。我如何通过编程来检查它?像这样的东西应该可以做到这一点。如果失败,则无法连接到服务器 Domino.NotesSession s = new Domino.NotesSession(); Domino.NotesDatabase db; try { LNSession.Initialize("password"); LNDatab
我有一个C#应用程序,我必须检查与Domino服务器的连接是否仍然有效,或者Domino服务器重新启动,我失去了连接。我如何通过编程来检查它?像这样的东西应该可以做到这一点。如果失败,则无法连接到服务器
Domino.NotesSession s = new Domino.NotesSession();
Domino.NotesDatabase db;
try
{
LNSession.Initialize("password");
LNDatabase = LNSession.GetDatabase("my lotus mail server", @"names.nsf", false);
}
catch (Exception e) // Not sure on the specific exception
{
// Connection failed
}