共用方式為


SPFile.Versions Property

Gets a collection of file version objects that represent the versions of the file.

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

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property Versions As SPFileVersionCollection
    Get
'Usage
Dim instance As SPFile
Dim value As SPFileVersionCollection

value = instance.Versions
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
public SPFileVersionCollection Versions { get; }

Property Value

Type: Microsoft.SharePoint.SPFileVersionCollection
An SPFileVersionCollection object that represents the file versions.

See Also

Reference

SPFile Class

SPFile Members

Microsoft.SharePoint Namespace