SPListItemVersionCollection.RestoreByID method
將指定的版本具有版本還原為目前的項目版本根據指定的版本識別碼。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Sub RestoreByID ( _
versionId As Integer _
)
'用途
Dim instance As SPListItemVersionCollection
Dim versionId As Integer
instance.RestoreByID(versionId)
public void RestoreByID(
int versionId
)
參數
versionId
Type: System.Int32指定要傳回的版本識別碼的 32 位元整數: 例如,512、 1024年或 1536年。如需詳細資訊,請參閱VersionId。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | 集合中不存在具有指定之 ID 的版本 |
備註
這個方法會將目前的清單項目版本取代versionId參數所指定的版本。
請參閱
參照
SPListItemVersionCollection class