SqlBoolean.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(SqlBoolean) | Compares this SqlBoolean object to the supplied SqlBoolean object and returns an indication of their relative values. | 
| CompareTo(Object) | Compares this SqlBoolean structure to a specified object and returns an indication of their relative values. | 
Remarks
This method is implemented to support the IComparable interface.
CompareTo(SqlBoolean)
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
Compares this SqlBoolean object to the supplied SqlBoolean object and returns an indication of their relative values.
public:
 int CompareTo(System::Data::SqlTypes::SqlBoolean value);public int CompareTo(System.Data.SqlTypes.SqlBoolean value);member this.CompareTo : System.Data.SqlTypes.SqlBoolean -> intPublic Function CompareTo (value As SqlBoolean) As IntegerParameters
- value
- SqlBoolean
A SqlBooleanSqlBoolean object to compare, or a null reference (Nothing in Visual Basic).
Returns
A signed number that indicates the relative values of the instance and value.
| Value | Description | 
|---|---|
| A negative integer | This instance is less than value. | 
| Zero | This instance is equal to value. | 
| A positive integer | This instance is greater than value, orvalueis a null reference (Nothingin Visual Basic). | 
Remarks
Any instance of SqlBoolean, regardless of its value, is considered greater than a null reference (Nothing in Visual Basic).
See also
Applies to
CompareTo(Object)
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
- Source:
- SQLBoolean.cs
Compares this SqlBoolean structure to a specified 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 -> intPublic Function CompareTo (value As Object) As IntegerParameters
- value
- Object
An object to compare, or a null reference (Nothing in Visual Basic).
Returns
A signed number that indicates the relative values of the instance and value.
| Value | Description | 
|---|---|
| A negative integer | This instance is less than value. | 
| Zero | This instance is equal to value. | 
| A positive integer | This instance is greater than value, orvalueis a null reference (Nothingin Visual Basic). | 
Implements
Remarks
Any instance of SqlBoolean, regardless of its value, is considered greater than a null reference (Nothing in Visual Basic).