共用方式為


SPGlobalAdmin.Version Property

NOTE: This API is now obsolete.

Obsolete. In Windows SharePoint Services 2.0, the Version property got the version of SharePoint Foundation that is installed in the deployment, and is maintained for backward compatibility.

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

Syntax

'Declaration
<ObsoleteAttribute("Most of the functionality in this class is available in SPFarm or SPWebService.",  _
    False)> _
Public ReadOnly Property Version As Version
    Get
'Usage
Dim instance As SPGlobalAdmin
Dim value As Version

value = instance.Version
[ObsoleteAttribute("Most of the functionality in this class is available in SPFarm or SPWebService.", 
    false)]
public Version Version { get; }

Property Value

Type: System.Version
A System.Version object that specifies the version of SharePoint Foundation.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace