SqlDataRecord.SetBoolean(Int32, Boolean) SqlDataRecord.SetBoolean(Int32, Boolean) SqlDataRecord.SetBoolean(Int32, Boolean) SqlDataRecord.SetBoolean(Int32, Boolean) Method

定义

将存储在列中的数据设置为指定的 Boolean 值。Sets the data stored in the column to the specified Boolean value.

public:
 virtual void SetBoolean(int ordinal, bool value);
public virtual void SetBoolean (int ordinal, bool value);
abstract member SetBoolean : int * bool -> unit
override this.SetBoolean : int * bool -> unit
Public Overridable Sub SetBoolean (ordinal As Integer, value As Boolean)

参数

ordinal
Int32 Int32 Int32 Int32

从零开始的列序号。The zero-based ordinal of the column.

value
Boolean Boolean Boolean Boolean

列的新值。The new value of the column.

适用于