问题描述
Hello Friends,
Hello Friends,
我正在制定一项要求,我需要以编程方式区分以下2项操作。
I am working on a requirement where I need to programmatically differentiate between below 2 operations.
1 - 通过"Ctrl + Drag& amp;"复制日历约会/ meeing项目(AppointmentItem)降"或者"Ctrl + C,Ctrl + V"
1 - copy calendar appointment/meeing item (AppointmentItem) by "Ctrl+Drag & Drop" or "Ctrl+C, Ctrl+V"
这里探测器的BeforeItemPaste事件被触发,然后日历文件夹项目ItemAdd事件被触发。
Here BeforeItemPaste event of explorer gets fired and then Calendar Folder Items ItemAdd event gets fired.
2 - 通过"拖动和放大"移动日历约会/会议项目(AppointmentItem)降"到不同的插槽
2 - move calendar appointment/meeting item (AppointmentItem) by "Drag & Drop" to different slot
这里Explorer对象的BeforeItemPaste事件被触发但日历文件夹项目ItemAdd事件不会触发。
Here BeforeItemPaste event of Explorer object gets fired but Calendar Folder Items ItemAdd event does not fire.
这种方法的问题是我需要在BeforeItemPaste中执行一些操作,因此需要区分该事件本身的这两个操作。
The problem with this approach is I need to perform some operation in BeforeItemPaste and so need to differentiate between these 2 operations in that event itself.
请告知是否可以在BeforeItemPaste事件本身中确定这个?
Can you please advise if it is possible to determine this in BeforeItemPaste event itself?
谢谢。
sureshh ...
sureshh...
推荐答案
不,Outlook对象模型没有为此提供任何内容。您需要处理这两个事件以区分用户执行的操作。
No, the Outlook object model doesn't provide anything for that. You need to handle both events to differentiate the action users do.
这篇关于C#+ Outlook 2010 +有没有办法区分日历AppointmentItem项目上的复制和移动操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!