please help. how to delete an occurrence of a recurring pocketoutlook task

  • Thread starter Thread starter Batterhead
  • Start date Start date
B

Batterhead

hi there,

i use c# and .netcf2 and am developing an outlook task app. i want to
retrieve a particular task instance of a recurring task and delete it.
does anyone know how to do that? i am stuck as there is no
getoccurrence() for the task folder and i cannot locate a task
instance.

thanks
batterheadccw
 
How are you creating the task? You should be able to grab the task value
and delete the recurrance based on that number. But I'd have to know how
you are creating the task first.
 
How are you creating the task? You should be able to grab the task value
and delete the recurrance based on that number. But I'd have to know how
you are creating the task first.

i created the recurring task (a single task) by newing a task object
and added it to the task collection, of course the
Task.RecurrencePattern has already been set. my problem is i cannot
locate a particular instance of that recurring task since what i have
all is only the assigned Task.ItemId. you are correct i can grab the
WHOLE recurring task using that ItemId but what if i want to grab only
one SINGLE instance instead of the whole recurring task. take an
example with an appointment, i can grab an instance of a recurring
appointment using Appointment.RecurrencePattern.GetOccurrence(datetime
of an appointment instance), however there is no such method for task.

e.g. what i want to do is to show the following task instances of
taskT which recurs for 3 consecutive days and delete the second
instance (2008-01-15). is it possible?

2008-01-14
taskT
2008-01-15
taskT
2008-01-16
taskT

thanks
batterhead
 
Back
Top