SqlDecimal.UnaryNegation(SqlDecimal) 运算符
定义
一元负运算符对 SqlDecimal 参数求反。The unary minus operator negates the SqlDecimal parameter.
public:
static System::Data::SqlTypes::SqlDecimal operator -(System::Data::SqlTypes::SqlDecimal x);
public static System.Data.SqlTypes.SqlDecimal operator - (System.Data.SqlTypes.SqlDecimal x);
static member ( ~- ) : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlDecimal
Public Shared Operator - (x As SqlDecimal) As SqlDecimal
参数
需求反的 SqlDecimal 结构。The SqlDecimal structure to be negated.
返回
一个新的 SqlDecimal 结构,其值包含求反的结果。A new SqlDecimal structure whose value contains the results of the negation.