SPProductVersions.GetProductVersions method (SPFarm)
Creates a new instance of this object. Then queries the database and populates the new instance with data from the query and returns the object instance.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetProductVersions ( _
farm As SPFarm _
) As SPProductVersions
'Usage
Dim farm As SPFarm
Dim returnValue As SPProductVersions
returnValue = SPProductVersions.GetProductVersions(farm)
public static SPProductVersions GetProductVersions(
SPFarm farm
)
Parameters
farm
Type: Microsoft.SharePoint.Administration.SPFarmThe parent farm of the object.
Return value
Type: Microsoft.SharePoint.Administration.SPProductVersions
A SPProductVersions object.