This topic has not yet been rated - Rate this topic

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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public void RevertAllDocumentContentStreams()
Exception Condition
SPException

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ