Condividi tramite


SPFileVersionCollection.GetVersionFromID Method

Returns the file version object with the specified ID.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function GetVersionFromID ( _
    versionid As Integer _
) As SPFileVersion
'Usage
Dim instance As SPFileVersionCollection
Dim versionid As Integer
Dim returnValue As SPFileVersion

returnValue = instance.GetVersionFromID(versionid)
public SPFileVersion GetVersionFromID(
    int versionid
)

Parameters

  • versionid
    Type: System.Int32

    A 32-bit integer that specifies the file version.

Return Value

Type: Microsoft.SharePoint.SPFileVersion
A Microsoft.SharePoint.SPFileVersion object that represents the file version.

See Also

Reference

SPFileVersionCollection Class

SPFileVersionCollection Members

Microsoft.SharePoint Namespace