Compares this object with another Version object.
[Visual Basic] Overridable Public Function CompareTo( _ ByVal version As Object _ ) As Integer [C#] public virtual int CompareTo( object version ); [C++] public: virtual int CompareTo( Object* version ); [JScript] public function CompareTo( version : Object ) : int;
-1 | If this version is older then. |
---|---|
0 | If this version is the same as version. |
1 | If this version is newer then version. |
The components of version in the decreasing order of importance are: major, minor, revision, and build. An unknown component is assumed to be smaller than any known component. For example,
version 1.1.* is older than version 1.1.1
version 1.1.* is older than version 1.1.2.3
version 1.1.2.* is older than version 1.1.2.4
version 1.2.5 is newer than version 1.2.3.4