If you are getting a MailItem use the MailItem properties: mail.Subject,
etc. Look in the Object Browser to see the properties on various items.
Check for item.Class = olMail, since items in the Inbox can be other things
besides mail items (post, meeting and task requests, etc.).
If that doesn't help show the code you're using to iterate the Items
collection.
--
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
"clay" wrote in message
...
Hi,
I just touch 2008 vs c#, meet a question about outlook addsin:
I want to delete all same mail in Inbox, so I use “Items Object”, I can
obtain a mail using "Item and GetNext" methods, but I didn't obtain
properties of the email, such as time, subject, etc.
How I do?
thks in advance
clay