TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ajay kumar
NA
1
0
synchrouns the account with IMAP
Sep 14 2009 5:14 AM
Hi All
my outlook profile handles two accounts one is of exchange and another one is of IMAP. Out of these two accounts I want to sync with IMAP account in certain cases only(like when system is idle or when exchange is offline)
For achieving this I have created an Outlook
Add in
that handles
Syncstart
event, when sync start is fired I am just stopping that by Stop() method of Sync object.
I have tried below code but was not able to stop the sync. Can anybady help me on this.
private NameSpace ns;
ns = ThisAplication.Session;
private Microsoft.Office.Interop.
Outlook.SyncObjectClass mySyncObject;
public void OnStartupComplete(ref System.Array custom)
{
mySyncObject = (SyncObjectClass)ns.
SyncObjects[1];
mySyncObject.SyncStart += new Microsoft.Office.Interop.
Outlook.SyncObjectEvents_
SyncStartEventHandler(
mySyncObject_SyncStart);
}
private void mySyncObject_SyncStart()
{
ns.SyncObjects[1].Stop();
}
Thanks in advance.
Reply
Answers (
1
)
Button focus
how to give connection string in c# using access