SPProductVersions.GetProductVersions method (SPFarm)
建立此物件的新執行個體。然後會查詢資料庫並填入查詢的資料的新執行個體,並傳回物件執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function GetProductVersions ( _
farm As SPFarm _
) As SPProductVersions
'用途
Dim farm As SPFarm
Dim returnValue As SPProductVersions
returnValue = SPProductVersions.GetProductVersions(farm)
public static SPProductVersions GetProductVersions(
SPFarm farm
)
參數
farm
Type: Microsoft.SharePoint.Administration.SPFarm物件的父項伺服器陣列。
傳回值
Type: Microsoft.SharePoint.Administration.SPProductVersions
SPProductVersions 物件。