SqlBoolean.ToSqlSingle 方法

定义

将此 SqlBoolean 结构转换为 SqlSingleConverts this SqlBoolean structure to SqlSingle.

public:
 System::Data::SqlTypes::SqlSingle ToSqlSingle();
public System.Data.SqlTypes.SqlSingle ToSqlSingle ();
member this.ToSqlSingle : unit -> System.Data.SqlTypes.SqlSingle
Public Function ToSqlSingle () As SqlSingle

返回

新的 SqlSingle 结构,其值为 1 或 0。A new SqlSingle structure whose value is 1 or 0.

如果 SqlBoolean 结构的值等于 true,则新的 SqlSingle 结构的值为 1;否则新的 SqlSingle 结构的值为 0。If the SqlBoolean structure's value equals true, the new SqlSingle structure's value is 1; otherwise the new SqlSingle structure's value is 0.

适用于

另请参阅