SqlBoolean.ToSqlDecimal 方法
定义
将此 SqlBoolean 结构转换为 SqlDecimal。Converts this SqlBoolean structure to SqlDecimal.
public:
System::Data::SqlTypes::SqlDecimal ToSqlDecimal();
public System.Data.SqlTypes.SqlDecimal ToSqlDecimal ();
member this.ToSqlDecimal : unit -> System.Data.SqlTypes.SqlDecimal
Public Function ToSqlDecimal () As SqlDecimal
返回
新的 SqlDecimal 结构,其值为 1 或 0。A new SqlDecimal structure whose value is 1 or 0. 如果 SqlBoolean 结构的值等于 true,则新 SqlDecimal 结构的值为 1。If the SqlBoolean structure's value equals true then the new SqlDecimal structure's value is 1. 否则,新的 SqlDecimal 结构的值为 0。Otherwise, the new SqlDecimal structure's value is 0.