共用方式為


SPServerProductInfo.GetSingleProductInfo method

會傳回這個伺服器上安裝的特定產品的相關資訊。

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

Syntax

'宣告
Public Function GetSingleProductInfo ( _
    name As String _
) As SPProduct
'用途
Dim instance As SPServerProductInfo
Dim name As String
Dim returnValue As SPProduct

returnValue = instance.GetSingleProductInfo(name)
public SPProduct GetSingleProductInfo(
    string name
)

參數

傳回值

Type: Microsoft.SharePoint.Administration.SPProduct
產品資訊SPProduct物件。如果此伺服器傳回a null reference (Nothing in Visual Basic)上未安裝產品。

請參閱

參照

SPServerProductInfo class

SPServerProductInfo members

Microsoft.SharePoint.Administration namespace