Int32.CompareTo Method (Object)
.NET Framework 4.6 and 4.5
Compares this instance to a specified object and returns an indication of their relative values.
Public Function CompareTo ( _
value As Object _
) As Integer
- Type: System.Object
An object to compare, or Nothing.
Type: System.Int32A signed number indicating the relative values of this instance and value.
Less than zero
This instance is less than value.
This instance is equal to value.
Greater than zero
This instance is greater than value.
value is Nothing.
Any instance of Int32, regardless of its value, is considered greater than Nothing.
value must be Nothing or an instance of Int32; otherwise, an exception is thrown.
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Supported in: 3.0, 2.0, 1.0
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8