此 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
参数
- left
类型:System.Boolean
第一个参数值。
- right
类型:System.Boolean
第二个参数值。
返回值
类型:System.Int32
值 |
条件 |
---|---|
-1 |
left 小于 right。 |
0 |
x 等于 y。 |
1 |
left 大于 right。 |
注释
在这种比较中,true 大于 false。