/// <summary> /// Gets the recurrence exceptions. /// </summary> /// <param name="oRPattern">The o R pattern.</param> /// <returns></returns> public List <OutlookException> GetRecurrenceExceptions(Outlook.RecurrencePattern oRPattern) { if (oRPattern == null) { throw new ArgumentNullException("oRPattern"); } List <OutlookException> retVal = new List <OutlookException>(); if (this.InvokeRequired) { Func <Outlook.RecurrencePattern, List <OutlookException> > func = this.GetRecurrenceExceptions; retVal = (List <OutlookException>) this.Invoke(func, oRPattern); } else { for (int i = 1; i <= oRPattern.Exceptions.Count; i++) { Outlook.Exception oException = oRPattern.Exceptions.Item(i); OutlookException exception = _factory.Create <OutlookItem>(oException) as OutlookException; if (exception != null) { retVal.Add(exception); } } } return(retVal); }
public OutlookException(OutlookListener listener, Outlook.Exception oException) : base(listener) { _oException = oException; }