Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Returns comparison information for nullable Boolean parameters in an operation expression.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Public Shared Function Compare ( _
left As Nullable(Of Boolean), _
right As Nullable(Of Boolean) _
) As Integer
'Usage
Dim left As Nullable(Of Boolean)
Dim right As Nullable(Of Boolean)
Dim returnValue As Integer
returnValue = DataServiceProviderMethods.Compare(left, _
right)
public static int Compare(
Nullable<bool> left,
Nullable<bool> right
)
public:
static int Compare(
Nullable<bool> left,
Nullable<bool> right
)
static member Compare :
left:Nullable<bool> *
right:Nullable<bool> -> int
public static function Compare(
left : Nullable<boolean>,
right : Nullable<boolean>
) : int
Parameters
- left
Type: System.Nullable<Boolean>
The first parameter value.
- right
Type: System.Nullable<Boolean>
The second parameter value.
Return Value
Type: System.Int32
Value |
Condition |
---|---|
-1 |
left is less than right. |
0 |
x equals y. |
1 |
left is greater than right. |
Remarks
In this comparison, true is greater than false.