SqlMoney.UnaryNegation(SqlMoney) 操作员

定义

一元负运算符对 SqlMoney 参数求反。The unary minus operator negates the SqlMoney parameter.

public:
 static System::Data::SqlTypes::SqlMoney operator -(System::Data::SqlTypes::SqlMoney x);
public static System.Data.SqlTypes.SqlMoney operator - (System.Data.SqlTypes.SqlMoney x);
static member ( ~- ) : System.Data.SqlTypes.SqlMoney -> System.Data.SqlTypes.SqlMoney
Public Shared Operator - (x As SqlMoney) As SqlMoney

参数

x
SqlMoney

需求反的 SqlMoney 结构。The SqlMoney structure to be negated.

返回

一个 SqlMoney 结构,它的 Value 包含求反的结果。A SqlMoney structure whose Value contains the results of the negation.

适用于

另请参阅