EdmFunctions.BitwiseAnd(DbExpression, DbExpression) 方法

定义

创建一个 DbFunctionExpression ,它使用指定的参数调用规范“BitwiseAnd”函数,该函数必须具有相同的整数数值结果类型。 表达式的结果类型与参数的类型相同。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ BitwiseAnd(System::Data::Common::CommandTrees::DbExpression ^ value1, System::Data::Common::CommandTrees::DbExpression ^ value2);
public static System.Data.Common.CommandTrees.DbFunctionExpression BitwiseAnd(this System.Data.Common.CommandTrees.DbExpression value1, System.Data.Common.CommandTrees.DbExpression value2);
static member BitwiseAnd : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function BitwiseAnd (value1 As DbExpression, value2 As DbExpression) As DbFunctionExpression

参数

value1
DbExpression

一个指定第一个操作数的表达式。

value2
DbExpression

一个指定第二个操作数的表达式。

返回

一个新的 DbFunctionExpression,返回通过执行位 AND value1 和生成的 value2值。

例外

value1value2null.

value1value2 无效。

适用于