How to find out wether Echange is disconnected with outlook or not

  • Thread starter Stop method of Sync object is not workin
  • Start date
S

Stop method of Sync object is not workin

Hi All,

I want to check programatically wether Exchange server is disconnected with
Outlook or not.If i am using offline property of Namespace object it is
working only if user is working offline its not working if user is
disconnected from exchange server.

Please suggest me how can I find out Exchange is disconnected or not with
outlook.

Thanks in advance.
 
K

Ken Slovak - [MVP - Outlook]

Please post the Outlook versions you are supporting when you post.

If your Outlook version supports it you can use
NameSpace.ExchangeConnectionMode. Use the Object Browser to see what return
values are possible.




"Stop method of Sync object is not workin"
 
S

Stop method of Sync object is not workin

it is returning cached mode or not. and i am using Outlook 2007
 
K

Ken Slovak - [MVP - Outlook]

So that answers your question. If the session was disconnected from Exchange
it would return olCachedDisconnected or olDisconnected.




"Stop method of Sync object is not workin"
 
S

Stop method of Sync object is not workin

Hi Ken

That property showing olCachedconnected even it is disconnected from
Exchange, my Outlook window is showing as disconnected but
NameSpace.ExchangeConnectionMode is showed as Connected.

Note: especially if exchange information store is stopped it is happening.

Please help to resolve this problem

Thanks in advance
 
K

Ken Slovak - [MVP - Outlook]

I'm not sure if that property is only checked on startup, or with
send/receives or at intervals. You'll have to do some experimentation to
check that out. If it's during a send/receive you can initiate one on
SyncObjects.Item(1) and then get the property. Otherwise you'd have to see
if an alternate API such as Redemption is more accurate or if that's the
best you can do.




"Stop method of Sync object is not workin"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top