SPListItem.Recycle method
從內容資料庫中刪除項目,並傳回交易的全域唯一識別碼 (GUID)。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function Recycle As Guid
'用途
Dim instance As SPListItem
Dim returnValue As Guid
returnValue = instance.Recycle()
public Guid Recycle()
傳回值
Type: System.Guid
刪除交易的識別碼。
Exceptions
Exception | Condition |
---|---|
NotSupportedException | 上層清單具有外部資料來源。 |