Compartilhar via


SPFile.RevertContentStream Method

Returns the file to its original state so that its logic becomes cached in memory (or "ghosted") rather than stored in the database.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub RevertContentStream
'Usage
Dim instance As SPFile

instance.RevertContentStream()
public void RevertContentStream()

Exceptions

Exception Condition
SPException

The value of the CustomizedPageStatus property is None.

SPException

An error occurred while performing the revert operation.

Remarks

This method throws an exception if the value of the CustomizedPageStatus property is None.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace