When using the code below, List contains 1000 items in a mailbox with 9000+ items.
List = cl.ListMessages(inf.InboxUri, 199999, ExchangeListMessagesOptions.ListRecursive)
Regardless of the second parameter. How can i get the full list of items?
var list = client.ListMessages(client.MailboxInfo.RootUri, true);
When i use that code, i get 1126 items (including calender items). Similar behavior can be observed by using the exchange webservice API provided by microsoft. It loads 1000 items, but you can use paging to get the next 1000 items with a subsequent call to “FindItems” (similar call as listmessages)
Below is the list i get from the MS api when i add a watch in Visual Studio to the list
+ Items Count = 1000 System.Collections.ObjectModel.Collection(Of TItem)
MoreAvailable True Boolean
NextPageOffset 1000 Integer?
TotalCount 9862 Integer
+ Results Expanding will process the collection