FindConversationWithHighlightTerms method

Future<FindConversationResults> FindConversationWithHighlightTerms(
  1. ViewBase view,
  2. FolderId folderId,
  3. String? queryString,
  4. bool returnHighlightTerms,
)
Searches for and retrieves a collection of Conversations in the specified Folder. Along with conversations, a list of highlight terms are returned. The view controlling the number of conversations returned. The Id of the folder in which to search for conversations. The query string for which the search is being performed Flag indicating if highlight terms should be returned in the response

Implementation

Future<FindConversationResults> FindConversationWithHighlightTerms(
  ViewBase view,
  FolderId folderId,
  String? queryString,
  bool returnHighlightTerms,
) async {
  EwsUtilities.ValidateParam(view, "view");
  EwsUtilities.ValidateParamAllowNull(queryString, "queryString");
  EwsUtilities.ValidateParam(returnHighlightTerms, "returnHighlightTerms");
  EwsUtilities.ValidateParam(folderId, "folderId");
  EwsUtilities.ValidateMethodVersion(
    this,
    ExchangeVersion.Exchange2013,
    // This method is only applicable for Exchange2013
    "FindConversation",
  );

  FindConversationRequest request = FindConversationRequest(this);

  request.View = view;
  request.FolderId = FolderIdWrapper(folderId);
  request.QueryString = queryString;
  request.ReturnHighlightTerms = returnHighlightTerms;

  return (await request.Execute()).Results;
}