Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPWeb.RevertAllDocumentContentStreams method

Restores all files within the website to their original, uncustomized state so that their logic becomes cached in memory (also known as "ghosted") rather than stored within the database.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void RevertAllDocumentContentStreams()


One or more files cannot be restored.

If a file cannot be restored, the method continues to attempt to restore the remaining files and throws one exception after processing all of the files.

© 2015 Microsoft