Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Think of some event receiver methods like ItemAdded, ItemDeleted etc.

How can I detect in my event receiver code if the item adding/deleting is being triggered from the web UI or from the object model / custom code?

share|improve this question
I don't think you can... maybe someone can prove me wrong. –  RJ Cuthbertson Jan 16 '13 at 16:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.