SqlMoney.Subtract(SqlMoney, SqlMoney) SqlMoney.Subtract(SqlMoney, SqlMoney) SqlMoney.Subtract(SqlMoney, SqlMoney) SqlMoney.Subtract(SqlMoney, SqlMoney) Method

定义

该减法运算符从第一个 SqlMoney 参数中减去第二个参数。The subtraction operator subtracts the second SqlMoney parameter from the first.

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

参数

x
SqlMoney SqlMoney SqlMoney SqlMoney

一个 SqlMoney 结构。A SqlMoney structure.

y
SqlMoney SqlMoney SqlMoney SqlMoney

一个 SqlMoney 结构。A SqlMoney structure.

返回

一个新的 SqlMoney 结构,它包含该减法运算的结果。A new SqlMoney structure that contains the results of the subtraction.

适用于

另请参阅