SPSiteSequence.GetVersion method
會傳回指定的識別碼及預設版本為基礎的相關聯的網站集合版本。
Namespace: Microsoft.SharePoint.Upgrade
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Protected Friend Function GetVersion ( _
id As Guid, _
defaultVersion As Version _
) As Version
'用途
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
)
參數
id
Type: System.Guid識別網站集合的 GUID。
defaultVersion
Type: System.VersionSystem.Version物件,代表預設版本。
傳回值
Type: System.Version
System.Version物件,代表網站集合版本。
備註
如果指定的版本不存在, GetVersion方法記錄,並會傳回預設版本。