Save method

Future<void> Save(
  1. FolderId parentFolderId
)
Empties the folder. Calling this method results in a call to EWS. The deletion mode. Indicates whether sub-folders should also be deleted. Marks all items in folder as read. Calling this method results in a call to EWS. If true, suppress sending read receipts for items. Marks all items in folder as read. Calling this method results in a call to EWS. If true, suppress sending read receipts for items. Saves this folder in a specific folder. Calling this method results in a call to EWS. The Id of the folder in which to save this folder.

Implementation

// void Empty(
//            DeleteMode deleteMode,
//            bool deleteSubFolders)
//        {
//            this.ThrowIfThisIsNew();
//            this.Service.EmptyFolder(
//                this.Id,
//                deleteMode,
//                deleteSubFolders);
//        }

/// <summary>
/// Marks all items in folder as read. Calling this method results in a call to EWS.
/// </summary>
/// <param name="suppressReadReceipts">If true, suppress sending read receipts for items.</param>
// void MarkAllItemsAsRead(bool suppressReadReceipts)
//        {
//            this.ThrowIfThisIsNew();
//            this.Service.MarkAllItemsAsRead(
//                this.Id,
//                true,
//                suppressReadReceipts);
//        }

/// <summary>
/// Marks all items in folder as read. Calling this method results in a call to EWS.
/// </summary>
/// <param name="suppressReadReceipts">If true, suppress sending read receipts for items.</param>
// void MarkAllItemsAsUnread(bool suppressReadReceipts)
//        {
//            this.ThrowIfThisIsNew();
//            this.Service.MarkAllItemsAsRead(
//                this.Id,
//                false,
//                suppressReadReceipts);
//        }

/// <summary>
/// Saves this folder in a specific folder. Calling this method results in a call to EWS.
/// </summary>
/// <param name="parentFolderId">The Id of the folder in which to save this folder.</param>
Future<void> Save(FolderId parentFolderId) async {
  this.ThrowIfThisIsNotNew();

//            EwsUtilities.ValidateParam(parentFolderId, "parentFolderId");

  if (this.IsDirty) {
    await this.Service.CreateFolder(this, parentFolderId);
  }
}