London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
Hi,
I was writing a scheduled job to move items from a ContentArea in a local block to a ContentArea on the actual page. Copying the items was no problem, but removing them from the old contentarea was more of a challenge. What I expected to work was to call writableClone.LocalBlock.ContentArea.Items.Clear(). This had no effect however. Eventually I resorted to create a temporary list of ContentAreaItems to delete, and then call writableClone.LocalBlock.ContentArea.Items.Remove(contentAreaItemToDelete) for each item.
Shouldn't Items.Clear() have sealed the deal?