NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Version.CompareTo

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;

Parameters

version
[To be supplied.]

Return Value

-1 If this version is older then.
0 If this version is the same as version.
1 If this version is newer then version.

Remarks

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

See Also

Version Class | Version Members | System Namespace