Add-in at work only when need

Add-in Express™ Support Service
That's what is more important than anything else

Add-in at work only when need
 
Giuseppe Porcelli




Posts: 46
Joined: 2006-05-26
Hi,
How can I disable add-in if the Exhange Server is not available (mobile users) out of the office.

Giuseppe
Posted 06 Oct, 2007 10:05:30 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Giuseppe.

You can use the Offline property of the Outlook._Namespace interface to reduce the add-in functionality if Outlook is not connected to the server.
Posted 08 Oct, 2007 12:04:39 Top
Giuseppe Porcelli




Posts: 46
Joined: 2006-05-26
your suggestion didn't work properly, the exchange server is reachable or not, the value of the Offline property is always FALSE.
Do you have any other suggestion ?
Posted 08 Oct, 2007 17:11:24 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Giuseppe, please try the code below. If the defaultFolder is null, the Exchange folders is not available.

Outlook.MAPIFolder defaultFolder =
nameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olPublicFoldersAllPublicFolders);
Posted 09 Oct, 2007 11:46:06 Top