共用方式為


DataServiceProviderMethods.Compare 方法 (Nullable<Guid>, Nullable<Guid>)

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

傳回作業運算式中可為 null 之 GUID 參數的比較資訊。

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

語法

'宣告
Public Shared Function Compare ( _
    left As Nullable(Of Guid), _
    right As Nullable(Of Guid) _
) As Integer
'用途
Dim left As Nullable(Of Guid)
Dim right As Nullable(Of Guid)
Dim returnValue As Integer

returnValue = DataServiceProviderMethods.Compare(left, _
    right)
public static int Compare(
    Nullable<Guid> left,
    Nullable<Guid> right
)
public:
static int Compare(
    Nullable<Guid> left, 
    Nullable<Guid> right
)
static member Compare : 
        left:Nullable<Guid> * 
        right:Nullable<Guid> -> int 
public static function Compare(
    left : Nullable<Guid>, 
    right : Nullable<Guid>
) : int

參數

傳回值

型別:System.Int32

條件

-1

left 小於 right。

0

x 等於 y。

1

left 大於 right。

備註

依位元組順序執行比較。

請參閱

參考

DataServiceProviderMethods 類別

Compare 多載

System.Data.Services.Providers 命名空間