System::Version::CompareTo μέθοδος

Version::CompareTo method

Συγκρίνει τις εκδόσεις που αντιπροσωπεύονται από το τρέχον αντικείμενο και το καθορισμένο αντικείμενο.

int System::Version::CompareTo(const Version &ver) const
ParameterTypeΠεριγραφή
verconst Version&Ένα αντικείμενο Version για σύγκριση με το τρέχον αντικείμενο

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

Δείτε επίσης