Sample: How to get the number of file attachments with EWS.

Since HasAttachments does not really give you the number of file attachments, we you will find that you need to work around it.  You can use code like that below to get the real count of file attachments on an item.       // —————————————————————————————–     // GetFileAttachmentsCount     //   Returns number of attachments on…

3

Sample: Howto display a list of calendar items in ListView using EWS

Here is a helpful sample of using EWS to get a list of calendar items and displaying them in a ListView.    You should be able to use this with he sample I published prior on creating a CalendarView:   Sample: Using Calendar Views with EWS. http://blogs.msdn.com/webdav_101/archive/2009/01/05/sample-using-calendar-views-with-ews.aspx   The sample below calls GetFileAttachmentsCount, which I…

10

Getting a list of mailboxes with WebDAV

OK, WebDAV does not have the ability itself to get a list of mailboxes.  However you can use other APIs and even use an OWA call to get a list of mailboxes.   Reading the GAL:   WebDAV itself cannot do this.  You could use the OWA GALFIND command, which has some limited ability.  You…

11

EWS - Csharp - List unread inbox messages using a restriction

// C# sample using Exchange Web Service Proxy classes to list unread messages in an inbox using a restriction.    private void FindInFolder()        {             // TODO: Put this code into a winform and call from a button:            // TODO: create 3 text boxes called txtRequest, txtResponse, txtItems            // TODO: Set the properties for the three…

10

HOWTO: VB6/CDO 1.21 - expand a distribution list

Below is a sample:   ‘ TODO: Create a new VB Project’ TODO: Set a reference to CDO 1.21′ TODO: Add a button to the form and paste this code in.’ TODO: Change TODO: sections below. Private Sub Command1_Click()     Dim objSession As MAPI.Session    Dim ObjMessage As MAPI.Message    Dim objUseRecips As MAPI.Recipients    Dim objRecips As…

2