none
[E2007/E2010/Exchange-Online] [EWSMA 1.1] [VB.Net]: [SyncFolderItems] RRS feed

  • Question

  • I am using the SyncFolderItems to get a ChangeCollection(Of ItemChange). I need to pass in the ignored item ids (IEnumerable(Of ItemId)).

    How do I go about building the IgnoredItemIds??


    Thanks Rob
    Monday, March 28, 2011 9:01 PM

Answers

  • Got It...

    Dim ignoredItemIDs As New System.Collections.Generic.List(Of ItemId)
    
         Do Until icc.Count = 0
    
          icc = _EXService.SyncFolderItems(Folder, extendedPropertySet, ignoredItemIDs, _
                    512, SyncFolderItemsScope.NormalItems, String.Empty)
    
          For Each EXItem As ItemChange In icc
    
            '+ Build a list of ignored item ids for subsequent requests
            '+ This is used in the event that the folder contains more then 512 items
            ignoredItemIDs.Add(EXItem.ItemId)
    


    Thanks Rob
    Wednesday, March 30, 2011 6:32 PM