次の方法で共有


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 名前空間