Freigeben über


DataServiceProviderMethods.Compare-Methode (Boolean, Boolean)

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

Gibt Vergleichsinformationen für boolesche Parameter 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 Boolean, _
    right As Boolean _
) As Integer
'Usage
Dim left As Boolean
Dim right As Boolean
Dim returnValue As Integer

returnValue = DataServiceProviderMethods.Compare(left, _
    right)
public static int Compare(
    bool left,
    bool right
)
public:
static int Compare(
    bool left, 
    bool right
)
static member Compare : 
        left:bool * 
        right:bool -> int 
public static function Compare(
    left : boolean, 
    right : 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