DbExpressionBuilder.Modulo(DbExpression, DbExpression) 方法

定義

建立一個新 DbArithmeticExpression 運算,計算左邊參數的其餘部分除以右側參數。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbArithmeticExpression ^ Modulo(System::Data::Common::CommandTrees::DbExpression ^ left, System::Data::Common::CommandTrees::DbExpression ^ right);
public static System.Data.Common.CommandTrees.DbArithmeticExpression Modulo(this System.Data.Common.CommandTrees.DbExpression left, System.Data.Common.CommandTrees.DbExpression right);
static member Modulo : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbArithmeticExpression
<Extension()>
Public Function Modulo (left As DbExpression, right As DbExpression) As DbArithmeticExpression

參數

left
DbExpression

一個明確表示左論點的表達式。

right
DbExpression

一個用來指定正確論點的表達式。

傳回

一個新的 DbArithmeticExpression 代表模運算。

例外狀況

leftright 為空值。

在 與 right之間不存在left常見的數值結果類型。

適用於