Share via


SPListItemVersion class

表示清單項目的版本。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPListItemVersion

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

Syntax

'宣告
Public NotInheritable Class SPListItemVersion
'用途
Dim instance As SPListItemVersion
public sealed class SPListItemVersion

備註

使用SPListItem類別的Versions屬性,傳回集合的清單項目的版本。如果在清單上啟用版本控制,則每當您修改建立版本的項目。

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

若要傳回特定的資料行的值清單項目版本,使用索引子的版本。例如,使用 Visual Basic,其中index是任一個索引數目的欄位中的清單] 或 [欄位的名稱相關聯的欄位集合中的myItemVersion[index]或myItemVersion(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.

請參閱

參照

SPListItemVersion members

Microsoft.SharePoint namespace