_MailItem or MailItem

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

_MailItem or MailItem
 
Ho-Yan Shum




Posts: 12
Joined: 2008-02-20
Hi,

I have noticed numerous variations between codes, using the underscore (_) and without the underscore.

From my understanding, underscore (_) [_MailItem] for any COM stuff that is passed into your addin, and anything else should be without the underscore (_) [MailItem]. Is this correct?

Posted 02 Jul, 2008 07:26:53 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Ho-Yan,

If you don't need to connect to events of an item you can use a class with or without an underscore. But if you need to connect to events of an item you should use a class without an underscore. The difference is in will you be allowed to connect to events of an item or not. They are interchangeable. This is the only difference.
.NET, Extended MAPI, Windows Phone & RT
Posted 02 Jul, 2008 12:03:33 Top