共用方式為


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)

Syntax

Public ReadOnly Property Versions As SPFileVersionCollection
    Get

Dim instance As SPFile
Dim value As SPFileVersionCollection

value = instance.Versions
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