Google Answers Logo
View Question
 
Q: How do I use C# to create event sinks in Microsoft's Outlook XP? ( No Answer,   0 Comments )
Question  
Subject: How do I use C# to create event sinks in Microsoft's Outlook XP?
Category: Computers > Programming
Asked by: ryanbeach-ga
List Price: $20.00
Posted: 19 Aug 2003 13:25 PDT
Expires: 18 Sep 2003 13:25 PDT
Question ID: 246574
Prereq Knowledge: C#, Office, Event Sinks, Marshalling

I haven't found a way to trap ALL office events in Microsoft's Interop
wrapper for Office Outlook. Specifically, there are events which don't
fire if I just add delegates to objects. For example, the folders
object does not reliably provide indicates of insertions, changes, and
deletions. And I only get events for mail objects which have had
explicit handlers set for them.

So I want to create an event sink in C# which gets ALL or huge bunches
of events without being tied to specific objects (this gets very heavy
in weight if I attach a handler to EVERY message in the folders!).

I've heard of Marshalling events to apply to a collection, but I don't
know how to do it and am unsure if it would work.

Any help would be greatly appreciated.

Request for Question Clarification by mathtalk-ga on 20 Aug 2003 16:52 PDT
Hi, ryanbeach-ga:

Microsoft gives us some pretty explicit help (which is apparently
necessary, given the obscurity of the techniques) for writing managed
code (C#) for event sinks in Exchange, here:

[Writing Managed Sinks]
http://msdn.microsoft.com/library/en-us/dnsmtps/html/writingmngsinks.asp

On the face of it your primary challenge seems to be elucidating the
event model in Microsoft Outlook sufficiently to make event detection
reliable.  Is this a fair restatement of the gist of your question?

I'd hate to see a Researcher "charge off in all directions" if the
desired scope of your question can be narrowed somewhat.

Thanks in advance,
mathtalk-ga

Clarification of Question by ryanbeach-ga on 25 Aug 2003 12:59 PDT
Yes, I think you understand my problem. 

I don't quite get enough information from the Server example to
implement it in Outlook and/or its object model.

I'm doing a plug-in to Outlook and it's not getting the change folder,
add folder, delete folder events despite my attaching delegates to the
appropriate object. Most events fire as they should. But I need the
event sink to catch all events to catch the rest.

Your restatement is fair.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy