EdmFunctions.BitwiseXor(DbExpression, DbExpression) 方法

定義

建立會使用指定引數叫用標準 'BitwiseXor' 函式的 DbFunctionExpression,其中的引數必須具有相同的整數數值結果型別。 運算式的結果型別與引數的型別相同。

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

參數

value1
DbExpression

指定第一個運算元的運算式。

value2
DbExpression

指定第二個運算元的運算式。

傳回

新的 DbFunctionExpression,傳回執行 和 value2的位 XOR (獨佔 OR) value1 所產生的值。

例外狀況

value1value2null

value1value2 無效。

適用於