MfVersion

Namespace ›› System ››
Parent Previous Next

MfVersion Class

(Inherits from MfObject)

Represents a version number. This class cannot be extended.
Sealed Class

Links

Properties, Methods, Example

Constructors


Name

Description

Constructor()

Initializes a new instance of the MfVersion class.

Constructor(version)

Initializes a new instance of the MfVersion class using the specified version.

Constructor(major, minor)

Initializes a new instance of the MfVersion class using the specified major and minor values.

Constructor(major, minor, build)

Initializes a new instance of the MfVersion class using the specified major, minor, and build values.

Constructor(major, minor, build, revision)

Initializes a new instance of the MfVersion class with the specified major, minor, build, and revision numbers.

Properties


Name

Description

Major

Gets the value of the major component of the version number for the current MfVersion object.

Minor

Gets the value of the minor component of the version number for the current MfVersion object.

Build

Gets the value of the build component of the version number for the current MfVersion object.

Revision

Gets the value of the revision component of the version number for the current MfVersion object.

MajorRevision

Gets the high 16 bits of the revision number.

MinorRevision

Gets the low 16 bits of the revision number.

Methods


Name

Description

CompareTo(obj)

Compares the current MfVersion object to a specified MfVersion object and returns an indication of their relative values. Overrides MfObject.CompareTo()

Equals(obj)

Gets if current MfVersion instance is equal to objA instance.

Equals(objA, ObjB)

Gets if objA instance of MfVersion is equal to objB instance.

GetHashCode()

Gets A hash code for the current MfException or derived class. Overrides MfObject.GethashCode().

GreaterThen(value)

Compares the current MfVersion object to a specified MfVersion object and returns a boolean indication of their relative values.

GreaterThenOrEqual(value)

Compares the current MfVersion object to a specified MfVersion object and returns an indication of their relative values.

GetType()

Gets the Type for the for the Class .Inherited from MfObject.

Is(type)

Gets if current instance of object is of the same type. Inherited from MfObject. Inherited from MfObject.

IsInstance()

Get if the current class is an instance. Inherited from MfObject.

LessThen(value)

Compares the current MfVersion object to a specified MfVersion object and returns an indication of their relative values.

LessThenOrEqual(value)

Compares the current MfVersion object to a specified MfVersion object and returns an indication of their relative values.

MemberwiseClone()

Creates a shallow copy of the current MfObject instance. Inherited from MfObject.

Parse(input)

Converts the string representation of a version number to an equivalent MfVersion object.

ToString()

Converts the value of the current Version object to its equivalent String representation. Overrides MfObject.ToString().

ToString(fieldCount)

Converts the value of the current Version object to its equivalent String representation. A specified count indicates the number of components to return.

Example

mfVer := new MfVersion("2.3.0.4")
MsgBox % mfVer.Major      ; 2
MsgBox % mfVer.Minor      ; 3
MsgBox % mfVer.Build      ; 0
MsgBox % mfVer.Revision   ; 4
MsgBox % mfVer.ToString() ; 2.3.0.4