共用方式為


SPFarm.BuildVersion property

取得伺服器陣列的Microsoft SharePoint Foundation組建版本。

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

Syntax

'宣告
Public ReadOnly Property BuildVersion As Version
    Get
'用途
Dim instance As SPFarm
Dim value As Version

value = instance.BuildVersion
public Version BuildVersion { get; }

Property value

Type: System.Version
System.Version物件,代表伺服器陣列的組建版本。

備註

傳回版本是以格式 major.minor.phase.build。

請參閱

參照

SPFarm class

SPFarm members

Microsoft.SharePoint.Administration namespace