RecycleBinItemCollection.RestoreAll 方法
將所有的資源回收筒項目還原至其原始位置。
命名空間: Microsoft.SharePoint.Client
組件: Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)
語法
'宣告
Public Sub RestoreAll
'用途
Dim instance As RecycleBinItemCollection
instance.RestoreAll()
public void RestoreAll()
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 另一個檔案或資料夾的名稱已經存在的原始位置。錯誤碼 ︰-2147024816。 |
[Microsoft.SharePoint.SPException] | 具有相同名稱的另一個清單已存在於原始位置。錯誤碼:-2147024713。 |
[Microsoft.SharePoint.SPException] | 資源回收筒項目是清單、 清單項目或不存在的文件的子系。錯誤碼 ︰-2147022917。 |
[Microsoft.SharePoint.SPException] | 資源回收筒項目包含Field.AllowDuplicateValues為 FALSE 的位置] 欄位的重複欄位值。錯誤碼:-2130575168。 |
[Microsoft.SharePoint.SPException] | 資源回收筒項目有一或多個查閱欄位值不存在的資料來源查閱欄位的目標。錯誤碼:-2130575156。 |
[Microsoft.SharePoint.SPQueryThrottledException] | 超出節流限制作業。錯誤碼:-2147024860。 |
[System.ArgumentException] | 資源回收筒項目不存在。錯誤碼 ︰-2147024809。 |
[System.UnauthorizedAccessException] | 目前的使用者會有足夠的權限。錯誤碼:-2147024891。 |