public Attendee Add(Participant participant, AttendeeType attendeeType = AttendeeType.Required, ResponseType?responseType = null, ExDateTime?replyTime = null, bool checkExisting = false) { return(AttendeeCollection.InternalAdd(this, delegate { int num; Attendee attendee = OccurrenceAttendeeCollection.FindAttendee(this.exceptionAttendeeCollection, participant, this.occurrence.Session as MailboxSession, out num); if (attendee != null && attendee.HasFlags(RecipientFlags.ExceptionalDeleted)) { attendee.RecipientFlags &= ~RecipientFlags.ExceptionalDeleted; this.exceptionAttendeeCollection.Remove(attendee); this.exceptionAttendeeCollection.LocationIdentifierHelperInstance.SetLocationIdentifier(46965U); attendee = this.exceptionAttendeeCollection.AddClone(attendee); attendee.AttendeeType = attendeeType; if (responseType != null) { attendee.ResponseType = responseType.Value; } if (replyTime != null) { attendee.ReplyTime = replyTime.Value; } } else { attendee = this.exceptionAttendeeCollection.Add(participant, attendeeType, responseType, replyTime, checkExisting); } this.attendeeCollection.Add(attendee); return attendee; }, participant, attendeeType, responseType, checkExisting)); }
public Attendee Add(Participant participant, AttendeeType attendeeType = AttendeeType.Required, ResponseType?responseType = null, ExDateTime?replyTime = null, bool checkExisting = false) { return(AttendeeCollection.InternalAdd(this, delegate { Attendee attendeeToAdd = this.GetAttendeeToAdd(participant); attendeeToAdd.AttendeeType = attendeeType; if (responseType != null) { attendeeToAdd.ResponseType = responseType.Value; } if (replyTime != null) { attendeeToAdd.ReplyTime = replyTime.Value; } this.ReportRecipientChange(LastChangeAction.RecipientAdded); return attendeeToAdd; }, participant, attendeeType, responseType, checkExisting)); }