共用方式為


SPListItemVersionCollection.GetVersionFromID method

傳回根據指定的版本識別碼集合中的版本

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetVersionFromID ( _
    versionId As Integer _
) As SPListItemVersion
'用途
Dim instance As SPListItemVersionCollection
Dim versionId As Integer
Dim returnValue As SPListItemVersion

returnValue = instance.GetVersionFromID(versionId)
public SPListItemVersion GetVersionFromID(
    int versionId
)

參數

  • versionId
    Type: System.Int32

    指定要傳回,例如 512、 1024年或 1536年版本識別碼的 32 位元整數。如需詳細資訊,請參閱VersionId

傳回值

Type: Microsoft.SharePoint.SPListItemVersion
表示版本的SPListItemVersion物件。

請參閱

參照

SPListItemVersionCollection class

SPListItemVersionCollection members

Microsoft.SharePoint namespace