EdmFunctions.BitwiseAnd(DbExpression, DbExpression) Metod

Definition

Skapar en DbFunctionExpression som anropar den kanoniska funktionen BitwiseAnd med de angivna argumenten, som måste ha samma numeriska resultattyp för heltal. Resultattypen för uttrycket är samma som typen av argument.

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

Parametrar

value1
DbExpression

Ett uttryck som anger den första operanden.

value2
DbExpression

Ett uttryck som anger den andra operanden.

Returer

En ny DbFunctionExpression som returnerar värdet som skapas genom att utföra bitvis OCH för value1 och value2.

Undantag

value1 eller value2 är null.

value1 eller value2 är ogiltig.

Gäller för