2

I'm looking for a way to programmatically reset a page to that page's site/feature definition, without using SharePoint Designer. There must be some sort of API that can do this, but my Googling around is coming up empty...

1 Answer 1

3

SPFile.RevertContentStream() is what you're looking for. Remember this will only work when the file really does have an uncustomized version on the file system though.

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.