/// <summary> /// Deletes this appointment. Calling this method results in a call to EWS. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Specifies if and how cancellations should be sent if this appointment is a meeting.</param> public void Delete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode) { this.InternalDelete( deleteMode, sendCancellationsMode, null); }
/// <summary> /// Deletes this appointment. Calling this method results in a call to EWS. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Specifies if and how cancellations should be sent if this appointment is a meeting.</param> public Task <ServiceResponseCollection <ServiceResponse> > Delete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode) { return(this.InternalDelete( deleteMode, sendCancellationsMode, null)); }
/// <summary> /// Deletes the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> internal override void InternalDelete( DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { throw new NotSupportedException(); }
/// <summary> /// Deletes async the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> /// <returns></returns> /// <exception cref="System.NotSupportedException"></exception> internal override System.Threading.Tasks.Task InternalDeleteAsync(DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { throw new NotSupportedException(); }
/// <summary> /// Deletes the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> internal override void InternalDelete( DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { throw new InvalidOperationException(Strings.DeletingThisObjectTypeNotAuthorized); }
/// <summary> /// Deletes the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> /// <param name="suppressReadReceipts">Whether to suppress read receipts</param> internal void InternalDelete( DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences, bool suppressReadReceipts) { this.ThrowIfThisIsNew(); this.ThrowIfThisIsAttachment(); // If sendCancellationsMode is null, use the default value that's appropriate for item type. if (!sendCancellationsMode.HasValue) { sendCancellationsMode = this.DefaultSendCancellationsMode; } // If affectedTaskOccurrences is null, use the default value that's appropriate for item type. if (!affectedTaskOccurrences.HasValue) { affectedTaskOccurrences = this.DefaultAffectedTaskOccurrences; } this.Service.DeleteItem( this.Id, deleteMode, sendCancellationsMode, affectedTaskOccurrences, suppressReadReceipts); }
/// <summary> /// Deletes the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> internal override void InternalDelete( DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { this.InternalDelete(deleteMode, sendCancellationsMode, affectedTaskOccurrences, false); }
/// <summary> /// Deletes this appointment. Calling this method results in a call to EWS. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Specifies if and how cancellations should be sent if this appointment is a meeting.</param> public Task <ServiceResponseCollection <ServiceResponse> > Delete(DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, CancellationToken token = default(CancellationToken)) { return(this.InternalDelete( deleteMode, sendCancellationsMode, null, token)); }
/// <summary> /// Deletes async the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> /// <returns></returns> /// <exception cref="System.InvalidOperationException"></exception> internal override System.Threading.Tasks.Task InternalDeleteAsync(DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { throw new InvalidOperationException(Strings.DeletingThisObjectTypeNotAuthorized); }
/// <summary> /// Deletes the object. /// </summary> /// <param name="deleteMode">The deletion mode.</param> /// <param name="sendCancellationsMode">Indicates whether meeting cancellation messages should be sent.</param> /// <param name="affectedTaskOccurrences">Indicate which occurrence of a recurring task should be deleted.</param> internal override async System.Threading.Tasks.Task InternalDeleteAsync( DeleteMode deleteMode, SendCancellationsMode? sendCancellationsMode, AffectedTaskOccurrence? affectedTaskOccurrences) { await this.InternalDeleteAsync(deleteMode, sendCancellationsMode, affectedTaskOccurrences, false); }