SqlDecimal.Subtract(SqlDecimal, SqlDecimal) SqlDecimal.Subtract(SqlDecimal, SqlDecimal) SqlDecimal.Subtract(SqlDecimal, SqlDecimal) SqlDecimal.Subtract(SqlDecimal, SqlDecimal) Method

定义

计算从第一个 SqlDecimal 操作数中减去第二个操作数所得的结果。Calculates the results of subtracting the second SqlDecimal operand from the first.

public:
 static System::Data::SqlTypes::SqlDecimal Subtract(System::Data::SqlTypes::SqlDecimal x, System::Data::SqlTypes::SqlDecimal y);
public static System.Data.SqlTypes.SqlDecimal Subtract (System.Data.SqlTypes.SqlDecimal x, System.Data.SqlTypes.SqlDecimal y);
static member Subtract : System.Data.SqlTypes.SqlDecimal * System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlDecimal
Public Shared Function Subtract (x As SqlDecimal, y As SqlDecimal) As SqlDecimal

参数

返回

一个新的 SqlDecimal 结构,它的“值”属性包含该减法运算的结果。A new SqlDecimal structure whose Value property contains the results of the subtraction.

适用于

另请参阅