共用方式為


SPWeb.RevertAllDocumentContentStreams method

將還原網站內的所有檔案根據其原始狀態,讓它們的邏輯會變成 (也稱為 「 建立映像 」) 的記憶體中快取而不是儲存在資料庫中。

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

Syntax

'宣告
Public Sub RevertAllDocumentContentStreams
'用途
Dim instance As SPWeb

instance.RevertAllDocumentContentStreams()
public void RevertAllDocumentContentStreams()

Exceptions

Exception Condition
SPException

無法還原一或多個檔案。

備註

如果無法還原檔案,這個方法會繼續嘗試還原其餘的檔案,並擲回一個例外狀況之後處理的所有檔案。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace