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.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
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
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object).)
Public methodEquals(SemanticVersion)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parses a string representation of a semantic version.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Public methodStatic memberTryParse
Tries to parse a string representation of a semantic version.
Top
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