FileVersionCollection.RestoreByLabel メソッド
Creates a new file version from the file specified by the 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 RestoreByLabel ( _
versionlabel As String _
)
'使用
Dim instance As FileVersionCollection
Dim versionlabel As String
instance.RestoreByLabel(versionlabel)
public void RestoreByLabel(
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 the VersionLabel property of a FileVersion object.
例外
例外 | 条件 |
---|---|
SPException | File is checked out by a user other than the current user. Error code: - 2130575306. |
SPException | Operation is not valid for the current state of the object. Operation is prohibited; the published version is greater than the attempted restore version. Error code: -2130246262. |
SPQueryThrottledException | List view threshold was exceeded. Error code: -2147024860. |
SPQueryThrottledException | Lack of system resources available to process this command. Error code: -2147024749. |
ArgumentException | Version label property of the FileVersion object is invalid. Error code: -2147024809. |
DirectoryNotFoundException | Specified version label is invalid. Error code: -2147024893. |
UnauthorizedAccessException | The current user has insufficient permissions. Error code: -2147024891. |