locked
How do I know a recurrence task is end by occurrences or end by date? RRS feed

  • Question

  • I am using VB.NET and trying to retrieve the Outlook events and Tasks from Outlook client.

    I can get the task/event recurrence pattern, eg:

     Dim pattern As Outlook.RecurrencePattern = task.GetRecurrencePattern()

    pattern.Occurrences

    pattern.PatternEndDate

     

    However, how do I know if the recurrence task or event is end by occurrences? or end by specific end date?

    It's because I may need to update the task recurrence pattern, but I don't know which one I should update.

    I couldn't find any properties in the Outlook.RecurrencePatternto get this?

    Appreciate if someone can give me some pointer.

    Thanks.

    cowcow

    Monday, November 7, 2011 10:39 AM

Answers

  • I would imagine they will fix it sooner or later.

    Otherwise it is Extended MAPi in C++ or Delphi or Redemption (any language).


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    • Marked as answer by 许阳(无锡) Friday, November 18, 2011 5:33 AM
    Wednesday, November 9, 2011 3:16 AM

All replies

  • Outlook Object Model does not expose that information.

    You can either read the the recurrence blob using PropertyAccessor and parse it (it's format is documented at http://msdn.microsoft.com/en-us/library/ee201188(v=exchg.80).aspx) or you can use RDORecurrencePattern.PatternEndKind property in Redemption: http://www.dimastr.com/redemption/RDORecurrencePattern.htm


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    Monday, November 7, 2011 1:53 PM
  • Thank you for the infomration.

     

    Using the Outlook Spy, IMessage - Outlook Task,  I could see the TaskRecurrence property
    http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/81160102

    However, when I tried to access it from VB.NET of a recurrence task, I got the error:

    e.g:
    propertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/81160102")


    System.Runtime.InteropServices.COMException = {"Object does not support property "http://schemas.microsoft.com/mapi/id/{00062003-0000-0000-C000-000000000046}/81160102"."}

    I could access the other properties, but just not this one, andy idea?

    Thanks.

    Tuesday, November 8, 2011 1:36 PM
  • Hmmm... It looks like Outlook prevents your from reading that property...


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    Tuesday, November 8, 2011 2:23 PM
  • Or other binary properties that it knows about. Such as the time zone blobs..
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!

    Tuesday, November 8, 2011 5:01 PM
  • The other binary properties are ok, just this one. No luck, any idea?

     

    Thanks.

    Wednesday, November 9, 2011 12:37 AM
  • I would imagine they will fix it sooner or later.

    Otherwise it is Extended MAPi in C++ or Delphi or Redemption (any language).


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.2 is now available!
    • Marked as answer by 许阳(无锡) Friday, November 18, 2011 5:33 AM
    Wednesday, November 9, 2011 3:16 AM
  • Thanks, I will have a look of the MAPI or Redemption.

     

    Thursday, November 10, 2011 9:22 AM