How to identify if an item is restored from Recycle Bin

Asked By Dana
19-Nov-09 04:00 AM
Hello,

I have a list with Event Receivers, both on ItemAdding and ItemAdded. For
unknown reason, when an item is restored from Recycle Bin both of the events
are fired (in SDK Microsoft say that when restoring an item from Recycle Bin
only ItemAdded Event is fired).
How can I identify if the item is restored from the Recycle Bin?

Try checking its Created property.

Zweitze replied to Dana
20-Nov-09 02:39 PM
Try checking its Created property.
For instance, when it is older than -say- one minute, it must be
recycled.
Or when it is equal to Modified, it is really a new item.

Please post your findings, I expect to run into this too.
Post Question To EggHeadCafe