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 命名空间