Share via


ServerVersion Class

The ServerVersion class represents the version information for the server.

Inheritance Hierarchy

Object
  Microsoft.SqlServer.Management.Common.ServerVersion

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class ServerVersion
'Usage
Dim instance As ServerVersion
[SerializableAttribute]
public class ServerVersion
[SerializableAttribute]
public ref class ServerVersion
[<SerializableAttribute>]
type ServerVersion =  class end
public class ServerVersion

The ServerVersion type exposes the following members.

Constructors

  Name Description
Public method ServerVersion(Int32, Int32) Initializes a new instance of the ServerVersion class.
Public method ServerVersion(Int32, Int32, Int32) Initializes a new instance of the ServerVersion class.

Top

Properties

  Name Description
Public property BuildNumber Gets the build number part of the server version information.
Public property Major Gets the build number part of the server version information.
Public property Minor Gets the build number part of the server version information.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns the object in string format. (Overrides ObjectToString.)

Top

Operators

  Name Description
Public operatorStatic member Explicit(ServerVersion to Version) Creates a system version object representing the sercer version,

Top

Remarks

The ServerVersion class is served by the ConnectionManager class.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Common Namespace