public void DeleteLabel(String labelName) { Mailbox targetMailbox = this.GetMailbox(labelName); targetMailbox.Delete(); this.RemoveLabel(labelName); }
// Token: 0x06001220 RID: 4640 RVA: 0x0004CC4C File Offset: 0x0004AE4C private void DeletePropertyFromMailboxTableAndSaveChanges(PropertyDefinition property) { Mailbox mailbox = ((MailboxSession)this.session).Mailbox; mailbox.Delete(property); mailbox.Save(); mailbox.Load(); }
// Token: 0x06000E49 RID: 3657 RVA: 0x00055C1C File Offset: 0x00053E1C private static void UpdateMailboxData(Mailbox mailBox, byte[] policyId, byte[] hashValue) { if (policyId == null) { mailBox.Delete(MailboxSchema.LastSharingPolicyAppliedId); } else { mailBox[MailboxSchema.LastSharingPolicyAppliedId] = policyId; } if (hashValue == null) { mailBox.Delete(MailboxSchema.LastSharingPolicyAppliedHash); } else { mailBox[MailboxSchema.LastSharingPolicyAppliedHash] = hashValue; } mailBox[MailboxSchema.LastSharingPolicyAppliedTime] = ExDateTime.UtcNow; mailBox.Save(); mailBox.Load(); }