共用方式為


DataServiceProviderMethods.Compare 方法 (Boolean, Boolean)

此 API 支援 基礎結構,但無法直接從您的程式碼使用。

傳回作業運算式中布林值參數的比較資訊。

命名空間:  System.Data.Services.Providers
組件:  Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)

語法

'宣告
Public Shared Function Compare ( _
    left As Boolean, _
    right As Boolean _
) As Integer
'用途
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

參數

傳回值

型別:System.Int32

條件

-1

left 小於 right。

0

x 等於 y。

1

left 大於 right。

備註

在此比較中,true 大於 false。

請參閱

參考

DataServiceProviderMethods 類別

Compare 多載

System.Data.Services.Providers 命名空間