3

Is it possible to detect whether SystemUpdate() or Update() has been invoked in an event receiver?

2 Answers 2

3

In the past I've used System.Diagnostics.StackTrace to walk the callstack in order to determine if SystemUpdate() or Update() was called.

-1

if i'm not wrong, the SystemUpdate is invoked under system account. Try to check SPWeb.CurrentUser property.

1
  • If that were true (not sure if it is), we still wouldn't know if the system account invoked Update().
    – Rex M
    Mar 6, 2012 at 3:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.