SqlBinary.CompareTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares this instance to a specified object and returns an indication of their relative values.
Overloads
CompareTo(SqlBinary) |
Compares this SqlBinary object to the supplied SqlBinary object and returns an indication of their relative values. |
CompareTo(Object) |
Compares this SqlBinary object to the supplied object and returns an indication of their relative values. |
Remarks
This method is implemented to support the IComparable interface.
CompareTo(SqlBinary)
- Source:
- SQLBinary.cs
- Source:
- SQLBinary.cs
- Source:
- SQLBinary.cs
public:
int CompareTo(System::Data::SqlTypes::SqlBinary value);
public int CompareTo (System.Data.SqlTypes.SqlBinary value);
member this.CompareTo : System.Data.SqlTypes.SqlBinary -> int
Public Function CompareTo (value As SqlBinary) As Integer
Parameters
Returns
A signed number that indicates the relative values of this SqlBinary structure and the object.
Return value | Condition |
---|---|
Less than zero | The value of this SqlBinary object is less than the object. |
Zero | This SqlBinary object is the same as object. |
Greater than zero | This SqlBinary object is greater than object, or the object is a null reference. |
See also
Applies to
CompareTo(Object)
- Source:
- SQLBinary.cs
- Source:
- SQLBinary.cs
- Source:
- SQLBinary.cs
Compares this SqlBinary object to the supplied object and returns an indication of their relative values.
public:
virtual int CompareTo(System::Object ^ value);
public int CompareTo (object? value);
public int CompareTo (object value);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (value As Object) As Integer
Parameters
Returns
A signed number that indicates the relative values of this SqlBinary structure and the object.
Return value | Condition |
---|---|
Less than zero | The value of this SqlBinary object is less than the object. |
Zero | This SqlBinary object is the same as object. |
Greater than zero | This SqlBinary object is greater than object, or the object is a null reference. |