SqlBoolean 构造函数

定义

初始化 SqlBoolean 结构的新实例。Initializes a new instance of the SqlBoolean structure.

重载

SqlBoolean(Boolean)

使用提供的布尔值初始化 SqlBoolean 结构的新实例。Initializes a new instance of the SqlBoolean structure using the supplied Boolean value.

SqlBoolean(Int32)

使用指定的整数值初始化 SqlBoolean 结构的新实例。Initializes a new instance of the SqlBoolean structure using the specified integer value.

SqlBoolean(Boolean)

使用提供的布尔值初始化 SqlBoolean 结构的新实例。Initializes a new instance of the SqlBoolean structure using the supplied Boolean value.

public:
 SqlBoolean(bool value);
public SqlBoolean (bool value);
new System.Data.SqlTypes.SqlBoolean : bool -> System.Data.SqlTypes.SqlBoolean
Public Sub New (value As Boolean)

参数

value
Boolean

SqlBoolean 结构的值,为 truefalseThe value for the new SqlBoolean structure; either true or false.

适用于

SqlBoolean(Int32)

使用指定的整数值初始化 SqlBoolean 结构的新实例。Initializes a new instance of the SqlBoolean structure using the specified integer value.

public:
 SqlBoolean(int value);
public SqlBoolean (int value);
new System.Data.SqlTypes.SqlBoolean : int -> System.Data.SqlTypes.SqlBoolean
Public Sub New (value As Integer)

参数

value
Int32

其值用于新 SqlBoolean 结构的整数。The integer whose value is to be used for the new SqlBoolean structure.

适用于