A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

One simple question



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 14th 08, 11:16 AM posted to microsoft.public.outlook.program_addins
clay
external usenet poster
 
Posts: 5
Default One simple question

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

  #2  
Old February 14th 08, 03:21 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default One simple question

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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple question belto Outlook - Using Contacts 1 December 7th 07 03:44 AM
Simple vba question for outlook2003 using exchange2003 Franck Outlook and VBA 1 August 3rd 06 10:17 PM
Simple Question on SafeInspector's RTEEditor [email protected] Outlook and VBA 5 July 26th 06 10:46 PM
I need a simple question answered.. Roxi Outlook Express 5 July 10th 06 05:12 AM
Fairly simple question about outlook print example Amy Outlook - Using Forms 1 April 7th 06 12:31 AM


All times are GMT +1. The time now is 07:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2025 Outlook Banter.
The comments are property of their posters.