SPSiteSequence.GetVersion Method

Returns the associated site collection version based on the specified ID and default version.

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

Syntax

'Declaration
Protected Friend Function GetVersion ( _
    id As Guid, _
    defaultVersion As Version _
) As Version
'Usage
Dim id As Guid
Dim defaultVersion As Version
Dim returnValue As Version

returnValue = Me.GetVersion(id, defaultVersion)
protected internal Version GetVersion(
    Guid id,
    Version defaultVersion
)

Parameters

  • id
    Type: System.Guid

    A GUID that identifies the site collection.

  • defaultVersion
    Type: System.Version

    A System.Version object that represents the default version.

Return Value

Type: System.Version
A System.Version object that represents the site collection version.

Remarks

If the specified version does not exist, the GetVersion method records and returns the default version.

See Also

Reference

SPSiteSequence Class

SPSiteSequence Members

Microsoft.SharePoint.Upgrade Namespace