ClientContext.ServerVersion Property

Gets the version of the current SharePoint Server.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property ServerVersion As Version
    Get
'Usage
Dim instance As ClientContext
Dim value As Version

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

Property Value

Type: System.Version
The version of the current SharePoint Server.

Remarks

This property is available after the first ExecuteQuery() method is executed.

See Also

Reference

ClientContext Class

ClientContext Members

Microsoft.SharePoint.Client Namespace