开发者

how to get next 50 items from a WellKnownFolderName in Exchange?

开发者 https://www.devze.com 2023-03-27 16:42 出处:网络
I\'m developing an email 开发者_如何学Cclient using EWS, in order to paging emails, I need to add paging function, but how to get the next xx items from a WellKnownFolderName folder say inbox?

I'm developing an email 开发者_如何学Cclient using EWS, in order to paging emails, I need to add paging function, but how to get the next xx items from a WellKnownFolderName folder say inbox? I use FindItemsResults findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50)); get first 50 items. how to get the next 50 items? An example code will be highly appreciated!


You are nearly there:

var items = service.FindItems(WellKnownFolderName.Inbox, new ItemView(50, 50));

The first parameter is the pagesize, the second parameter is the offset.

0

精彩评论

暂无评论...
验证码 换一张
取 消