共用方式為


SPFileVersionCollection class

表示SPFileVersion物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPFileVersionCollection

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

Syntax

'宣告
Public Class SPFileVersionCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPFileVersionCollection
public class SPFileVersionCollection : SPBaseCollection

備註

使用SPFile類別的Versions屬性,傳回的版本檔案的集合。

使用索引子來從集合傳回單一版本。例如,假設集合指派給變數,名為myVersions,使用在 C# 的myVersions[index]或myVersions(index)在 Microsoft Visual Basic,其中index是集合中的版本編號。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPFileVersionCollection members

Microsoft.SharePoint namespace