System::Version::CompareTo 方法

Version::CompareTo method

比较当前对象和指定对象所表示的版本。

int System::Version::CompareTo(const Version &ver) const
参数类型描述
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

另见