ListItem.Recycle 方法
將清單項目移至資源回收筒,並傳回新資源回收筒項目的識別碼。
命名空間: 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 Function Recycle As ClientResult(Of Guid)
'用途
Dim instance As ListItem
Dim returnValue As ClientResult(Of Guid)
returnValue = instance.Recycle()
public ClientResult<Guid> Recycle()
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<Guid>
傳回ClientResult<T>。
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 清單項目是不是週期性例外狀況成為週期性事件的執行個體。錯誤碼 ︰-2146232832。清單項目不存在。錯誤碼 ︰-2130575338。 |
[System.NotSupportedException] | 在外部清單上呼叫的方法。錯誤碼:-1。 |
[System.UnauthorizedAccessException] | 目前的使用者會有足夠的權限。錯誤碼 ︰-2147024891。 |