FileVersionCollection.DeleteByID 方法
刪除指定的檔案版本。
命名空間: 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 DeleteByID ( _
vid As Integer _
)
'用途
Dim instance As FileVersionCollection
Dim vid As Integer
instance.DeleteByID(vid)
public void DeleteByID(
int vid
)
參數
vid
類型:System.Int32指定要刪除的檔案版本識別碼。
vid不能零。
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 您無法刪除目前的版本。錯誤碼 ︰-2147024710。 |
[Microsoft.SharePoint.SPQueryThrottledException] | 已超過清單檢視閥值。錯誤碼 ︰-2147024860。 |
[Microsoft.SharePoint.SPQueryThrottledException] | 缺少的資源可用於處理要求。錯誤碼 ︰-2147024749。 |
[System.IO.FileNotFoundException] | 找不到指定的版本識別碼檔案。錯誤碼 ︰-2147024894。 |
[System.UnauthorizedAccessException] | 目前的使用者會有足夠的權限。錯誤碼 ︰-2147024891。 |