View Single Post
  #2  
Old September 17th 08, 02:49 AM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Calculating total size of mail items

Nope. The way you describe is exactly the right approach.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54




"Stuart Parker" wrote:

Hi,

I'm developing an add-in for Outlook 2007 in VB using VSTO 2007 and VS2008
SP1

I have obtained a collection of mail items by using the restrict method on
the inbox (Items older than a particular date)

I need to get the total size of all the mail items in this collection. Is
there a quicker/more accepted method of doing this instead of iterating the
collection with a For Each, and adding the size of each item to a counter
variable ?

Thanks


Ads