SqlDecimal.Subtraction(SqlDecimal, SqlDecimal) SqlDecimal.Subtraction(SqlDecimal, SqlDecimal) SqlDecimal.Subtraction(SqlDecimal, SqlDecimal) SqlDecimal.Subtraction(SqlDecimal, SqlDecimal) Operator

定义

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

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

参数

返回

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

注解

此运算符的等效方法是SqlDecimal.Subtract(SqlDecimal, SqlDecimal)The equivalent method for this operator is SqlDecimal.Subtract(SqlDecimal, SqlDecimal).

适用于

另请参阅