FindConversationWithQueryString method
Retrieves a collection of all Conversations in the specified Folder.
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
Implementation
Future<List<Conversation>> FindConversationWithQueryString(
ViewBase view,
FolderId folderId,
String? queryString,
) async {
EwsUtilities.ValidateParam(view, "view");
EwsUtilities.ValidateParamAllowNull(queryString, "queryString");
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;
return (await request.Execute()).Conversations;
}