共用方式為


SPProductVersions.GetProduct method

指定的產品資訊。

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

Syntax

'宣告
Public Function GetProduct ( _
    productName As String _
) As SPProduct
'用途
Dim instance As SPProductVersions
Dim productName As String
Dim returnValue As SPProduct

returnValue = instance.GetProduct(productName)
public SPProduct GetProduct(
    string productName
)

參數

傳回值

Type: Microsoft.SharePoint.Administration.SPProduct
SPProduct 物件或a null reference (Nothing in Visual Basic)如果找不到產品。

請參閱

參照

SPProductVersions class

SPProductVersions members

Microsoft.SharePoint.Administration namespace