CalendarReader.Version

Hello,
About new feature: Add Appoinment.Version property

Dim MyCalendarReader = New CalendarReader(InputStream, loadOpt)
While MyCalendarReader.NextEvent()
Dim MyAppointment As Appointment = MyCalendarReader.Current
MyAppointment.Version…
End While

Using this test case with above code:
_No VEvent.zip (556 Bytes)

This falls into an infinite loop, can you please consider CalendarReader.Version property, which works right after:
Dim MyCalendarReader = New CalendarReader(InputStream, loadOpt)
MyCalendarReader.Version
So in case of No VEvent files, it read the version anyway?

@australian.dev.nerds
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): EMAILNET-41090

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @australian.dev.nerds

Could you please check this code again.
On our side the InvalidOperationException(“Source does not contains VEvent components.”) was thrown in MyCalendarReader constructor. In this case the Version property does not make sense because the reader instance will not be created.

1 Like

Thanks, seems so, you’re right, yet for other cases such as format detection or loading calendars with multiple events that we wanna use CalendarReader only, it’s not that meaningless :slight_smile:

The property will be added to the CalendarReader.

1 Like

Thanks so much,

If I try: TryCast(MapiMessage.ToMapiMessageItem, MapiContact)

While MapiMessage’s class is Message or DistList, trying to cast it to MapiContact will not succeed, this was expected? :slight_smile:

of course it’s to be expected