Skip to content

Instantly share code, notes, and snippets.

View MarlonCopeland's full-sized avatar

Marlon Copeland MarlonCopeland

View GitHub Profile
@MarlonCopeland
MarlonCopeland / SharePointSearchPagingCSOM
Created August 2, 2022 18:49
Search using Paging example for SharePoint Online CSOM
private static ResultTable GetSearchResults(int startIndex,ClientContext clientContext)
{
ClientResult<ResultTableCollection> results = null;
try
{
KeywordQuery keywordQuery = new KeywordQuery(clientContext);
SearchExecutor searchExecutor = new SearchExecutor(clientContext);
keywordQuery.StartRow = startIndex;//gets or sets the first row of information from the search results