SaveWithFolderId method

Future<TMessage> SaveWithFolderId(
  1. FolderId destinationFolderId
)
Saves the response in the specified folder. Calling this method results in a call to EWS. The Id of the folder in which to save the response.

Implementation

Future<TMessage> SaveWithFolderId(FolderId destinationFolderId) async {
  EwsUtilities.ValidateParam(destinationFolderId, "destinationFolderId");

  return (await InternalCreate(
        destinationFolderId,
        MessageDisposition.SaveOnly,
      ))[0]
      as TMessage;
}