SqlDecimal.Sign(SqlDecimal) SqlDecimal.Sign(SqlDecimal) SqlDecimal.Sign(SqlDecimal) SqlDecimal.Sign(SqlDecimal) Method

定义

获取一个值,该值指示 SqlDecimal 结构的 Value 属性的符号。Gets a value that indicates the sign of a SqlDecimal structure's Value property.

public:
 static System::Data::SqlTypes::SqlInt32 Sign(System::Data::SqlTypes::SqlDecimal n);
public static System.Data.SqlTypes.SqlInt32 Sign (System.Data.SqlTypes.SqlDecimal n);
static member Sign : System.Data.SqlTypes.SqlDecimal -> System.Data.SqlTypes.SqlInt32
Public Shared Function Sign (n As SqlDecimal) As SqlInt32

参数

n
SqlDecimal SqlDecimal SqlDecimal SqlDecimal

要计算其符号的 SqlDecimal 结构。The SqlDecimal structure whose sign is to be evaluated.

返回

一个指示 SqlDecimal 结构的符号的数字。A number that indicates the sign of the SqlDecimal structure.

适用于

另请参阅