SqlInt32.Modulus(SqlInt32, SqlInt32) 方法

定义

将两个 SqlInt32 值相除,并返回余数。Divides two SqlInt32 values and returns the remainder.

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

参数

x
SqlInt32

一个 SqlInt32 值。A SqlInt32 value.

y
SqlInt32

一个 SqlInt32 值。A SqlInt32 value.

返回

xy 执行除法运算后得到的余数。The remainder left after division is performed on x and y.

注解

如果 xy 的任一实例为 null,则该值将为 null。If either instance of x or y is null, the value will be null.

适用于

另请参阅