共用方式為


SPListItemVersionCollection.GetVersionFromLabel method

傳回根據指定的版本標籤集合中的版本。

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

Syntax

'宣告
Public Function GetVersionFromLabel ( _
    versionLabel As String _
) As SPListItemVersion
'用途
Dim instance As SPListItemVersionCollection
Dim versionLabel As String
Dim returnValue As SPListItemVersion

returnValue = instance.GetVersionFromLabel(versionLabel)
public SPListItemVersion GetVersionFromLabel(
    string versionLabel
)

參數

  • versionLabel
    Type: System.String

    字串,指定要傳回的版本的版本標籤。版本標籤格式的相關資訊,請參閱VersionLabel

傳回值

Type: Microsoft.SharePoint.SPListItemVersion
表示版本的SPListItemVersion物件。

請參閱

參照

SPListItemVersionCollection class

SPListItemVersionCollection members

Microsoft.SharePoint namespace