WHY WE USE THE PROPERTIES.CURRENT.WEB INSTEAD OF SPCONTEXT.CURRENT.WEB IN EVENT RECEIVER?

Arun Singh

Total Post:310

Points:1550
Posted by  Arun Singh
 3775  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:310

    Points:1550
    Why we use the properties.current.web instead of SPContext.Current.web in event receiver?

    When we deploy project from Visual studio then we can use the SPContext.Current.web but when we use the powershell to activate or deactive the feature then we have to use properties.current.web because there is no access of browser here.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!