SqlInt16.Subtraction(SqlInt16, SqlInt16) 运算符

定义

从第一个 SqlInt16 参数中减去第二个参数。Subtracts the second SqlInt16 parameter from the first.

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

参数

x
SqlInt16

SqlInt16 结构。A SqlInt16 structure.

y
SqlInt16

SqlInt16 结构。A SqlInt16 structure.

返回

SqlInt16

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

注解

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

适用于