共用方式為


SPFarm.BuildVersion Property

Gets the Microsoft SharePoint Foundation build version of the server farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property BuildVersion As Version
    Get
'Usage
Dim instance As SPFarm
Dim value As Version

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

Property Value

Type: System.Version
A System.Version object that represents the build version of the server farm.

Remarks

The version is returned in the format major.minor.phase.build.

See Also

Reference

SPFarm Class

SPFarm Members

Microsoft.SharePoint.Administration Namespace