I want to migrate my farm solution from SharePoint 2010 to SharePoint 2019. I have RunWithElevatedPrivileges method used in SP2010 solution. Can it be used in SP2019 also?

1 Answer 1


Looks like yes.

According to the MS documentation page for SPSecurity.RunWithElevatedPrivileges, it applies to the "Latest" version of SharePoint Server.

screenshot of MS documentation page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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