VSTO:Prevent 特定的 AppointmentItems 要转换为循环 AppointmentItems
VSTO:Prevent specific AppointmentItems to be converted to recurring AppointmentItems
我正在尝试构建 Outlook 加载项。在某些情况下,我想知道用户是否正在尝试将当前 AppointmentItem 转换为循环 AppointmentItem。
有可能赶上这个事件吗?是否可以在某些情况下阻止事件发生?
感谢
您可以捕获 AppointmentItem.PropertyChange("IsRecurring")
事件 - 只要重复模式发生变化,它就会触发。然后您可以提示用户并调用 AppointmentItem.ClearRecurencePattern()
.
AppointmentItem
可以从 Inspector.CurrentItem
中检索,检查员可以从 Inspectors.NewInspector
事件中检索。
我正在尝试构建 Outlook 加载项。在某些情况下,我想知道用户是否正在尝试将当前 AppointmentItem 转换为循环 AppointmentItem。 有可能赶上这个事件吗?是否可以在某些情况下阻止事件发生?
感谢
您可以捕获 AppointmentItem.PropertyChange("IsRecurring")
事件 - 只要重复模式发生变化,它就会触发。然后您可以提示用户并调用 AppointmentItem.ClearRecurencePattern()
.
AppointmentItem
可以从 Inspector.CurrentItem
中检索,检查员可以从 Inspectors.NewInspector
事件中检索。