此 API 支持 基础结构,但不能通过代码直接使用。
返回操作表达式中可为 null 的布尔参数的比较信息。
命名空间: System.Data.Services.Providers
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Public Shared Function Compare ( _
left As Nullable(Of Boolean), _
right As Nullable(Of Boolean) _
) As Integer
用法
Dim left As Nullable(Of Boolean)
Dim right As Nullable(Of Boolean)
Dim returnValue As Integer
returnValue = DataServiceProviderMethods.Compare(left, _
right)
public static int Compare(
Nullable<bool> left,
Nullable<bool> right
)
public:
static int Compare(
Nullable<bool> left,
Nullable<bool> right
)
static member Compare :
left:Nullable<bool> *
right:Nullable<bool> -> int
public static function Compare(
left : Nullable<boolean>,
right : Nullable<boolean>
) : int
参数
- left
类型:System.Nullable<Boolean>
第一个参数值。
- right
类型:System.Nullable<Boolean>
第二个参数值。
返回值
类型:System.Int32
值 |
条件 |
---|---|
-1 |
left 小于 right。 |
0 |
x 等于 y。 |
1 |
left 大于 right。 |
注释
在这种比较中,true 大于 false。