共用方式為


SPProductVersions.GetServerProductInfo method

擷取指定伺服器的產品資訊。

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

Syntax

'宣告
Public Function GetServerProductInfo ( _
    serverIdGuid As Guid _
) As SPServerProductInfo
'用途
Dim instance As SPProductVersions
Dim serverIdGuid As Guid
Dim returnValue As SPServerProductInfo

returnValue = instance.GetServerProductInfo(serverIdGuid)
public SPServerProductInfo GetServerProductInfo(
    Guid serverIdGuid
)

參數

  • serverIdGuid
    Type: System.Guid

    要從中擷取產品資訊之伺服器的唯一識別碼。

傳回值

Type: Microsoft.SharePoint.Administration.SPServerProductInfo
與伺服器的相關資訊SPServerProductInfo物件。會傳回 null 如果找不到伺服器。

請參閱

參照

SPProductVersions class

SPProductVersions members

Microsoft.SharePoint.Administration namespace