Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the schema version associated with the upgrade sequence specified by ID.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Protected Function GetVersionForId ( _
id As Guid, _
defaultVersion As Version _
) As Version
'Usage
Dim id As Guid
Dim defaultVersion As Version
Dim returnValue As Version
returnValue = Me.GetVersionForId(id, _
defaultVersion)
protected Version GetVersionForId(
Guid id,
Version defaultVersion
)
id
Type: System.GuidA GUID that identifies the database.
defaultVersion
Type: System.VersionThe default version.
Type: System.Version
The version of the associated SPDatabase object.
If the database does not contain any version information about the particular sequence, then defaultVersion is returned.