SaveWithWellKnownFolder method

Future<TMessage> SaveWithWellKnownFolder(
  1. WellKnownFolderName destinationFolderName
)
Saves the response in the specified folder. Calling this method results in a call to EWS. The name of the folder in which to save the response.

Implementation

Future<TMessage> SaveWithWellKnownFolder(
  WellKnownFolderName destinationFolderName,
) async {
  return (await InternalCreate(
        FolderId.fromWellKnownFolder(destinationFolderName),
        MessageDisposition.SaveOnly,
      ))[0]
      as TMessage;
}