NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

ItemProperties enumerator fails when UserProperty exists #236

Open yzarcman opened 5 years ago

yzarcman commented 5 years ago

When using for each iterator on ItemProperties collection of a contact item I receive the following error.

foreach (var property in item.ItemProperties)
{
  // my logic here
}

Unable to cast object of type 'NetOffice.OutlookApi.UserProperty' to type 'NetOffice.OutlookApi.ItemProperty'. at NetOffice.OutlookApi.ItemProperties.d__31.MoveNext()

jozefizso commented 5 years ago

What NetOffice version are you using?

yzarcman commented 5 years ago

1.7.4.5