Click or drag to resize

SemanticVersion Class

Represents a semantic version number.
Inheritance Hierarchy
SystemObject
  MongoDB.Driver.Core.MiscSemanticVersion

Namespace:  MongoDB.Driver.Core.Misc
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public class SemanticVersion : IEquatable<SemanticVersion>, 
	IComparable<SemanticVersion>

The SemanticVersion type exposes the following members.

Constructors
  NameDescription
Public methodSemanticVersion(Int32, Int32, Int32)
Initializes a new instance of the SemanticVersion class.
Public methodSemanticVersion(Int32, Int32, Int32, String)
Initializes a new instance of the SemanticVersion class.
Top
Properties
  NameDescription
Public propertyMajor
Gets the major version.
Public propertyMinor
Gets the minor version.
Public propertyPatch
Gets the patch version.
Public propertyPreRelease
Gets the pre release version.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two specified semantic versions have the same value.
Public operatorStatic memberGreaterThan
Determines whether the first specified SemanticVersion is greater than the second specified SemanticVersion.
Public operatorStatic memberGreaterThanOrEqual
Determines whether the first specified SemanticVersion is greater than or equal to the second specified SemanticVersion.
Public operatorStatic memberInequality
Determines whether two specified semantic versions have different values.
Public operatorStatic memberLessThan
Determines whether the first specified SemanticVersion is less than the second specified SemanticVersion.
Public operatorStatic memberLessThanOrEqual
Determines whether the first specified SemanticVersion is less than or equal to the second specified SemanticVersion.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also