![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
No, it is not necessary to be static, not even a add-in member
field/property. The only requirement is that an instance of a class that is returned from a RequestComAddInAutomationService event handler is implementing a given COM interface. I am using code like this: protected override object RequestComAddInAutomationService() { PreInitialize(); return new PreInitializeData(factory, client); //return base.RequestComAddInAutomationService(); } "Ken Slovak - [MVP - Outlook]" wrote: I believe that static is a requirement, but I'm not positive. Try it without and see if it works. If it doesn't that still lets you set the externally visible interfaces as static and still work with non-static methods and properties. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Nenad" wrote in message ... Thanks, that is exactly what I have asked for. One final question: As I can see, using this technique, only static methods and properties can be invoked on add-in class? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
what reference do i need. why error | Dickery1 | Outlook and VBA | 2 | March 6th 08 11:01 AM |
Smarter NameSpace Reference... | DG | Outlook and VBA | 1 | October 21st 07 02:26 PM |
How to remove reference to Outlook Add-in | Richard Skilton | Outlook - Installation | 4 | July 28th 07 08:40 PM |
Problem to reference FM20.dll | Christian Havel | Add-ins for Outlook | 2 | July 13th 07 07:32 AM |
Reference Formula | ~KO | Outlook - Using Forms | 3 | February 24th 06 08:20 PM |