SPFile.RevertContentStream method
SharePoint 2013
Returns the file to its original state so that its logic becomes cached in memory (or "ghosted") rather than stored in the database.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
| Exception | Condition |
|---|---|
| SPException | The value of the CustomizedPageStatus property is None. |
| SPException | An error occurred while performing the revert operation. |
This method throws an exception if the value of the CustomizedPageStatus property is None.