Should we iterate over the output or the original list inside the sample code #1112
Answered
by
jansenbe
mvcsharepointdev
asked this question in
Q&A
-
I am reviewing this sample code:-
but should we iterate over the
as the output will hold all the paged values and not the myList.Items.AsRequested()? am i correct? |
Beta Was this translation helpful? Give feedback.
Answered by
jansenbe
Feb 24, 2023
Replies: 1 comment 2 replies
-
The paging loop will load all list items into memory and you can then iterate over the loaded items via |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mvcsharepointdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The paging loop will load all list items into memory and you can then iterate over the loaded items via
foreach (var listItem in myList.Items.AsRequested())