public ExportOptions() { this.exportStart = null; this.exportEnd = null; this.mailItemFlag = ExportFlag.NotSet; this.appointmentItemFlag = ExportFlag.NotSet; this.meetingItemFlag = ExportFlag.NotSet; this.contactItemFlag = ExportFlag.NotSet; this.taskItemFlag = ExportFlag.NotSet; this.journalItemFlag = ExportFlag.NotSet; this.otherItemFlag = ExportFlag.NotSet; this.maxCopyMoveAttempts = 5; }
public static ExportFlag ReadExportFlag(string flag) { ExportFlag returnFlag = ExportFlag.NotSet; switch (flag.ToLower()) { case "e": returnFlag = ExportFlag.Exclude; break; case "f": returnFlag = ExportFlag.Filter; break; case "a": case "": returnFlag = ExportFlag.All; break; } return(returnFlag); }