FindConversation method

Future<List<Conversation>> FindConversation(
  1. ViewBase view,
  2. FolderId folderId
)
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.

Implementation

Future<List<Conversation>> FindConversation(
  ViewBase view,
  FolderId folderId,
) async {
  EwsUtilities.ValidateParam(view, "view");
  EwsUtilities.ValidateParam(folderId, "folderId");
  EwsUtilities.ValidateMethodVersion(
    this,
    ExchangeVersion.Exchange2010_SP1,
    "FindConversation",
  );

  FindConversationRequest request = FindConversationRequest(this);

  request.View = view;
  request.FolderId = FolderIdWrapper(folderId);

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