SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.