public void IgnoreConversations() { DeleteItemInfo[] array = (DeleteItemInfo[])base.GetParameter("Itms"); OwaStoreObjectId[] array2 = (OwaStoreObjectId[])base.GetParameter("Cnvs"); if (array != null) { if (array2 != null) { throw new OwaInvalidRequestException("IgnoreConversations does not accept both conversation IDs and items."); } if (array.Length > 500) { throw new OwaInvalidOperationException(string.Format(CultureInfo.InvariantCulture, "Calling ignore conversation on {0} item(s) in a single request is not supported", new object[] { array.Length })); } OwaStoreObjectId owaStoreObjectId = (OwaStoreObjectId)base.GetParameter("fId"); MailboxSession session = (MailboxSession)owaStoreObjectId.GetSession(base.UserContext); List <OwaStoreObjectId> list = new List <OwaStoreObjectId>(array.Length); using (Folder folder = Folder.Bind(session, owaStoreObjectId.StoreObjectId)) { foreach (DeleteItemInfo deleteItemInfo in array) { ConversationId conversationId = ConversationUtilities.MapItemToConversation(base.UserContext, deleteItemInfo.OwaStoreObjectId); if (conversationId != null) { list.Add(OwaStoreObjectId.CreateFromConversationId(conversationId, folder, null)); } } } array2 = list.ToArray(); } base.CheckSizeOfBatchOperation(array2); bool flag = true; foreach (OwaStoreObjectId conversationId2 in array2) { flag &= ConversationUtilities.IgnoreConversation(base.UserContext, conversationId2); } if (!flag) { base.RenderErrorResult("errDel", 166628739); } }