Reset a page to site/feature definition programmatically?
Question
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...
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange