FileVersionCollection.DeleteByLabel メソッド
Deletes the file version object with the specified version label.
名前空間: 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 DeleteByLabel ( _
versionlabel As String _
)
'使用
Dim instance As FileVersionCollection
Dim versionlabel As String
instance.DeleteByLabel(versionlabel)
public void DeleteByLabel(
string versionlabel
)
パラメーター
versionlabel
型: System.StringSpecifies the version label.
It must not be null 参照 (Visual Basic のNothing ). It must not be empty. Version label must be the return value from VersionLabel property of a FileVersion object.
例外
例外 | 条件 |
---|---|
SPException | Current version cannot be deleted. Error code: -2147024710. |
SPQueryThrottledException | Attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator. Error code: -2147024860. |
SPQueryThrottledException | Insufficient system resources are available to process the request. Error code: -2147024749. |
ArgumentException | Version label must be the return value from VersionLabel property of a FileVersion object. Error code: -2147024809. |
[System.IO.FileNotFoundException] | Specified version label is invalid. Error code: -2147024894. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |