RecycleBinItemCollection.GetById 方法
傳回指定的識別項資源回收筒項目集合。
命名空間: 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 GetById ( _
id As Guid _
) As RecycleBinItem
'用途
Dim instance As RecycleBinItemCollection
Dim id As Guid
Dim returnValue As RecycleBinItem
returnValue = instance.GetById(id)
public RecycleBinItem GetById(
Guid id
)
參數
id
類型:System.Guid指定資源回收筒項目的識別碼。
傳回值
類型:Microsoft.SharePoint.Client.RecycleBinItem
傳回代表指定識別項集合資源回收筒項目RecycleBinItem執行個體。
例外狀況
例外狀況 | 條件 |
---|---|
[System.ArgumentException] | 資源回收筒項目不存在。錯誤碼 ︰-2147024809。 |