CompareTo()

Version::CompareTo(const Version&) const method

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

int System::Version::CompareTo(const Version &ver) const

Arguments

ParameterTypeDescription
verconst Version&A Version object to compare with the current object

Return Value

-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