FileVersionCollection.DeleteByID メソッド
Deletes the specified version of the file.
名前空間: 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.Int32Specifies the file version identifier to delete.
The vid must not be zero.
例外
例外 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | Current version cannot be deleted. Error code: -2147024710. |
[Microsoft.SharePoint.SPQueryThrottledException] | List view threshold has been exceeded. Error code: -2147024860. |
[Microsoft.SharePoint.SPQueryThrottledException] | Lack of resources available to process the request. Error code: -2147024749. |
[System.IO.FileNotFoundException] | File with specified version identifier cannot be found. Error code: -2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |