2011-09-05 92 views

回答

0

像這樣的東西應該做的伎倆。如果失敗,則無法連接到服務器。

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 
}