System::Version::CompareTo method

Version::CompareTo method

Compares the versions represented by the current object and the specified object.

int System::Version::CompareTo(const Version &ver) const
ParameterTypeDescription
verconst Version&A Version object to compare with the current object

ReturnValue

-1 if the version number represented by the current object is less than that represented by ver; 0 if the version numbers are equal; 1 if the version number represented by the current object is greater than the value represented by ver

See Also