Freigeben über


DataServiceProviderMethods.Compare-Methode (Nullable<Boolean>, Nullable<Boolean>)

Diese API unterstützt die -Infrastruktur und ist nicht zur direkten Verwendung im Code bestimmt.

Gibt Vergleichsinformationen für boolesche Parameter, die NULL-Werte zulassen, in einem Vorgangsausdruck zurück.

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

Parameter

Rückgabewert

Typ: System.Int32

Wert

Bedingung

-1

left ist kleiner als right.

0

x = y.

1

left ist größer als right.

Hinweise

In diesem Vergleich ist true größer als false.

Siehe auch

Verweis

DataServiceProviderMethods Klasse

Compare-Überladung

System.Data.Services.Providers-Namespace