CompareTo Method (Object)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Assembly: mscorlib (in mscorlib.dll)
Return ValueType: System..::..Int32
A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the value parameter.
Less than zero
This instance precedes value.
This instance has the same position in the sort order as value.
Greater than zero
This instance follows value.
value is nullNothingnullptrunita null reference (Nothing in Visual Basic).
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.