SqlCeVersion Class

Represents the SQL Server Compact runtime version information.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServerCe.VersionManagement.SqlCeVersion

Namespace:  Microsoft.SqlServerCe.VersionManagement
Assembly:  Microsoft.SqlServerCe.VersionManagement (in Microsoft.SqlServerCe.VersionManagement.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class SqlCeVersion _
    Implements IComparable, IComparable(Of SqlCeVersion),  _
    IEquatable(Of SqlCeVersion)
'Usage
Dim instance As SqlCeVersion
[SerializableAttribute]
public sealed class SqlCeVersion : IComparable, 
    IComparable<SqlCeVersion>, IEquatable<SqlCeVersion>
[SerializableAttribute]
public ref class SqlCeVersion sealed : IComparable, 
    IComparable<SqlCeVersion^>, IEquatable<SqlCeVersion^>
[<SealedAttribute>]
[<SerializableAttribute>]
type SqlCeVersion =  
    class
        interface IComparable
        interface IComparable<SqlCeVersion>
        interface IEquatable<SqlCeVersion>
    end
public final class SqlCeVersion implements IComparable, IComparable<SqlCeVersion>, IEquatable<SqlCeVersion>

The SqlCeVersion type exposes the following members.

Constructors

  Name Description
Public method SqlCeVersion Initializes a new instance of the SqlCeVersion class with the specified major and minor component of the version.

Top

Properties

  Name Description
Public property Major Gets or sets the the major component of the version number for the current SqlCeVersion object.
Public property Minor Gets or sets the minor component of the version number for the current SqlCeVersion object.

Top

Methods

  Name Description
Public method CompareTo(Object) Indicates the comparison of two instance of the SqlCeVersion class and returns 0 if they are the same.
Public method CompareTo(SqlCeVersion) Indicates the comparison of the current SqlCeVersion object to a specified SqlCeVersion and returns an indication of their relative values.
Public method Equals(Object) Specifies a value that indicates whether the current SqlCeVersion object is equal to a specified object. (Overrides Object.Equals(Object).)
Public method Equals(SqlCeVersion) Specifies a value indicating whether the current SqlCeVersion object is equal to a specified object.
Protected method Finalize (inherited from Object)
Public method GetHashCode Retrieves a hash code for the current SqlCeVersion object. (Overrides Object.GetHashCode().)
Public method GetType (inherited from Object)
Protected method MemberwiseClone (inherited from Object)
Public method ToString Converts the value of the current SqlCeVersion object to its equivalent string representation. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the first specified SqlCeVersion object is equal to the second specified SqlCeVersion object.
Public operatorStatic member GreaterThan Determines whether the first specified SqlCeVersion object is greater than the second specified SqlCeVersion object.
Public operatorStatic member GreaterThanOrEqual Determines whether the first specified SqlCeVersion object is greater than or equal to the second specified SqlCeVersion object.
Public operatorStatic member Inequality Determines whether the first specified SqlCeVersion object is not equal to the second specified SqlCeVersion object.
Public operatorStatic member LessThan Determines whether the first specified SqlCeVersion object is less than the second specified SqlCeVersion object.
Public operatorStatic member LessThanOrEqual Determines whether the first specified SqlCeVersion object is less than or equal to the second SqlCeVersion object.

Top

Thread Safety

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

See Also

Reference

Microsoft.SqlServerCe.VersionManagement Namespace